Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| adfa584416 | |||
| ddf8b1d49b | |||
| c5df43ce48 | |||
| f8299b36aa |
@@ -41,7 +41,6 @@ class RsaSigner implements Signer
|
||||
strtolower(Headers::YOP_CONTENT_SHA256),
|
||||
strtolower(Headers::YOP_HASH_CRC64ECMA),
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
public function sign(Request $request, YopRsaCredentials $credentials = null, SignOptions $options = null)
|
||||
@@ -187,6 +186,8 @@ class RsaSigner implements Signer
|
||||
public function checkSignature(YopHttpResponse $httpResponse, $signature, $publicKey, SignOptions $options)
|
||||
{
|
||||
$content = $httpResponse->readContent();
|
||||
\Log::channel('yeepay')->error('返回的内容:', json_decode($content, true));
|
||||
|
||||
$content = str_replace([" ", "\n", "\t"], "", $content);
|
||||
if (openssl_verify($content, base64_decode($signature), $publicKey, $options->getDigestAlg()) == 1) {
|
||||
return;
|
||||
|
||||
@@ -37,6 +37,7 @@ class ClientHandler
|
||||
|
||||
/**
|
||||
* ClientHandler constructor.
|
||||
*
|
||||
* @param ClientParams $clientParams
|
||||
*/
|
||||
public function __construct(ClientParams $clientParams)
|
||||
@@ -57,9 +58,9 @@ class ClientHandler
|
||||
*/
|
||||
public function execute(ClientExecutionParams $executionParams)
|
||||
{
|
||||
|
||||
$executionContext = $this->getExecutionContext($executionParams);
|
||||
$request = $executionParams->getRequestMarshaller()->marshal($executionParams->getRequest());
|
||||
\Log::channel('yeepay')->error('提交的参数:', $request->getParameters());
|
||||
|
||||
/** @var ExecutionContext $httpExecutionContext */
|
||||
$httpExecutionContext = $executionContext[0];
|
||||
@@ -68,7 +69,6 @@ class ClientHandler
|
||||
$yopHttpResponse = $this->yopHttpClient->execute($request, $httpExecutionContext);
|
||||
/** @var ResponseUnMarshalParams $ResponseUnMarshalParams */
|
||||
$ResponseUnMarshalParams = $executionContext[1];
|
||||
|
||||
return $executionParams->getResponseUnMarshaller()->unmarshal($yopHttpResponse, $ResponseUnMarshalParams);
|
||||
}
|
||||
|
||||
@@ -81,9 +81,9 @@ class ClientHandler
|
||||
{
|
||||
$httpExecutionContext = new ExecutionContext();
|
||||
$ResponseUnMarshalParams = new ResponseUnMarshalParams();
|
||||
|
||||
$request = $executionParams->getRequest();
|
||||
$authorizationReq = $this->authorizationReqRegistry->getAuthorizationReq($request::getOperationId());
|
||||
|
||||
if (isset($authorizationReq)) {
|
||||
$signer = SignerFactory::getSigner($authorizationReq->getSignerType());
|
||||
$signOptions = new SignOptions($authorizationReq->getDigestAlg(), $authorizationReq->getProtocolPrefix());
|
||||
|
||||
@@ -34,11 +34,11 @@ class YopHttpClient
|
||||
|
||||
/**
|
||||
* YopHttpClient constructor.
|
||||
*
|
||||
* @param ClientConfiguration $clientConfiguration
|
||||
*/
|
||||
public function __construct(ClientConfiguration $clientConfiguration)
|
||||
{
|
||||
|
||||
$this->logger = LogFactory::getLogger(get_class($this));
|
||||
$this->clientConfiguration = $clientConfiguration;
|
||||
$guzzleClientConfig = [
|
||||
@@ -68,6 +68,8 @@ class YopHttpClient
|
||||
$executionContext->getSigner()
|
||||
->sign($request, $executionContext->getCredentials(), $executionContext->getSignOptions());
|
||||
try {
|
||||
\Log::channel('yeepay')->error('头部信息', $request->getHeaders());
|
||||
|
||||
$guzzleResponse = $this->sendRequest($request);
|
||||
} catch (ServerException $e) {
|
||||
$guzzleResponse = $e->getResponse();
|
||||
|
||||
@@ -51,7 +51,8 @@ abstract class BaseResponseUnMarshaller implements ResponseUnMarshaller
|
||||
{
|
||||
$responseMetadata->setYopRequestId($yopHttpResponse->getHeader(Headers::YOP_REQUEST_ID));
|
||||
$responseMetadata->setYopContentSha256($yopHttpResponse->getHeader(Headers::YOP_CONTENT_SHA256));
|
||||
$responseMetadata->setYopSign($yopHttpResponse->getHeader(Headers::YOP_SIGN));
|
||||
#todo 关闭验签
|
||||
// $responseMetadata->setYopSign($yopHttpResponse->getHeader(Headers::YOP_SIGN));
|
||||
$responseMetadata->setYopVia($yopHttpResponse->getHeader(Headers::YOP_VIA));
|
||||
$responseMetadata->setContentDisposition($yopHttpResponse->getHeader(Headers::CONTENT_DISPOSITION));
|
||||
$responseMetadata->setContentEncoding($yopHttpResponse->getHeader(Headers::CONTENT_ENCODING));
|
||||
@@ -71,7 +72,6 @@ abstract class BaseResponseUnMarshaller implements ResponseUnMarshaller
|
||||
if ($responseMetadata->getYopVia() == YopConstants::DEFAULT_SANDBOX_VIA) {
|
||||
self::$logger->info('response from sandbox-gateway');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private function checkSignature(YopHttpResponse $yopHttpResponse, $signature, ResponseUnMarshalParams $params)
|
||||
@@ -127,7 +127,8 @@ abstract class BaseResponseUnMarshaller implements ResponseUnMarshaller
|
||||
if (! empty($content)) {
|
||||
try {
|
||||
$data = json_decode($content, true);
|
||||
dd($data);
|
||||
\Log::channel('yeepay')->info('返回的错误信息', $data);
|
||||
|
||||
$yopServiceException = new YopServiceException($data['message'], $data['code']);
|
||||
$yopServiceException->setRequestId($data['requestId']);
|
||||
$yopServiceException->setSubErrorCode($data['subCode']);
|
||||
|
||||
@@ -0,0 +1,512 @@
|
||||
<?php
|
||||
/**
|
||||
* AccountBookQueryRefundQueryAccountBookRefundRespDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 账户
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* AccountBookQueryRefundQueryAccountBookRefundRespDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class AccountBookQueryRefundQueryAccountBookRefundRespDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'AccountBookQueryRefundQueryAccountBookRefundRespDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'returnCode' => 'string',
|
||||
'returnMsg' => 'string',
|
||||
'refundStatus' => 'string',
|
||||
'refundAmount' => 'float',
|
||||
'merchantRefundRequestNo' => 'string',
|
||||
'merchantOriginalRequestNo' => 'string',
|
||||
'refundOrderNo' => 'string',
|
||||
'bankPostscrip' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'returnCode' => null,
|
||||
'returnMsg' => null,
|
||||
'refundStatus' => null,
|
||||
'refundAmount' => null,
|
||||
'merchantRefundRequestNo' => null,
|
||||
'merchantOriginalRequestNo' => null,
|
||||
'refundOrderNo' => null,
|
||||
'bankPostscrip' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'returnCode' => 'returnCode',
|
||||
'returnMsg' => 'returnMsg',
|
||||
'refundStatus' => 'refundStatus',
|
||||
'refundAmount' => 'refundAmount',
|
||||
'merchantRefundRequestNo' => 'merchantRefundRequestNo',
|
||||
'merchantOriginalRequestNo' => 'merchantOriginalRequestNo',
|
||||
'refundOrderNo' => 'refundOrderNo',
|
||||
'bankPostscrip' => 'bankPostscrip'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'returnCode' => 'setReturnCode',
|
||||
'returnMsg' => 'setReturnMsg',
|
||||
'refundStatus' => 'setRefundStatus',
|
||||
'refundAmount' => 'setRefundAmount',
|
||||
'merchantRefundRequestNo' => 'setMerchantRefundRequestNo',
|
||||
'merchantOriginalRequestNo' => 'setMerchantOriginalRequestNo',
|
||||
'refundOrderNo' => 'setRefundOrderNo',
|
||||
'bankPostscrip' => 'setBankPostscrip'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'returnCode' => 'getReturnCode',
|
||||
'returnMsg' => 'getReturnMsg',
|
||||
'refundStatus' => 'getRefundStatus',
|
||||
'refundAmount' => 'getRefundAmount',
|
||||
'merchantRefundRequestNo' => 'getMerchantRefundRequestNo',
|
||||
'merchantOriginalRequestNo' => 'getMerchantOriginalRequestNo',
|
||||
'refundOrderNo' => 'getRefundOrderNo',
|
||||
'bankPostscrip' => 'getBankPostscrip'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
|
||||
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
|
||||
$this->container['refundStatus'] = isset($data['refundStatus']) ? $data['refundStatus'] : null;
|
||||
$this->container['refundAmount'] = isset($data['refundAmount']) ? $data['refundAmount'] : null;
|
||||
$this->container['merchantRefundRequestNo'] = isset($data['merchantRefundRequestNo']) ? $data['merchantRefundRequestNo'] : null;
|
||||
$this->container['merchantOriginalRequestNo'] = isset($data['merchantOriginalRequestNo']) ? $data['merchantOriginalRequestNo'] : null;
|
||||
$this->container['refundOrderNo'] = isset($data['refundOrderNo']) ? $data['refundOrderNo'] : null;
|
||||
$this->container['bankPostscrip'] = isset($data['bankPostscrip']) ? $data['bankPostscrip'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets returnCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnCode()
|
||||
{
|
||||
return $this->container['returnCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnCode
|
||||
*
|
||||
* @param string $returnCode 返回码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnCode($returnCode)
|
||||
{
|
||||
$this->container['returnCode'] = $returnCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets returnMsg
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnMsg()
|
||||
{
|
||||
return $this->container['returnMsg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnMsg
|
||||
*
|
||||
* @param string $returnMsg 返回信息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnMsg($returnMsg)
|
||||
{
|
||||
$this->container['returnMsg'] = $returnMsg;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets refundStatus
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRefundStatus()
|
||||
{
|
||||
return $this->container['refundStatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets refundStatus
|
||||
*
|
||||
* @param string $refundStatus 退款状态
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRefundStatus($refundStatus)
|
||||
{
|
||||
$this->container['refundStatus'] = $refundStatus;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets refundAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getRefundAmount()
|
||||
{
|
||||
return $this->container['refundAmount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets refundAmount
|
||||
*
|
||||
* @param float $refundAmount 退款金额
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRefundAmount($refundAmount)
|
||||
{
|
||||
$this->container['refundAmount'] = $refundAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantRefundRequestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantRefundRequestNo()
|
||||
{
|
||||
return $this->container['merchantRefundRequestNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantRefundRequestNo
|
||||
*
|
||||
* @param string $merchantRefundRequestNo 商户退款请求号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantRefundRequestNo($merchantRefundRequestNo)
|
||||
{
|
||||
$this->container['merchantRefundRequestNo'] = $merchantRefundRequestNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantOriginalRequestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantOriginalRequestNo()
|
||||
{
|
||||
return $this->container['merchantOriginalRequestNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantOriginalRequestNo
|
||||
*
|
||||
* @param string $merchantOriginalRequestNo 商户原单请求号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantOriginalRequestNo($merchantOriginalRequestNo)
|
||||
{
|
||||
$this->container['merchantOriginalRequestNo'] = $merchantOriginalRequestNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets refundOrderNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRefundOrderNo()
|
||||
{
|
||||
return $this->container['refundOrderNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets refundOrderNo
|
||||
*
|
||||
* @param string $refundOrderNo 易宝退款单号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRefundOrderNo($refundOrderNo)
|
||||
{
|
||||
$this->container['refundOrderNo'] = $refundOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankPostscrip
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBankPostscrip()
|
||||
{
|
||||
return $this->container['bankPostscrip'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankPostscrip
|
||||
*
|
||||
* @param string $bankPostscrip 银行附言
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBankPostscrip($bankPostscrip)
|
||||
{
|
||||
$this->container['bankPostscrip'] = $bankPostscrip;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
92
lib/Service/Account/Model/AccountBookQueryRefundRequest.php
Normal file
92
lib/Service/Account/Model/AccountBookQueryRefundRequest.php
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class AccountBookQueryRefundRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantRefundRequestNo;
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo
|
||||
* @return AccountBookQueryRefundRequest
|
||||
*/
|
||||
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 AccountBookQueryRefundRequest
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantRefundRequestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantRefundRequestNo()
|
||||
{
|
||||
return $this->merchantRefundRequestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantRefundRequestNo
|
||||
*
|
||||
* @param string $merchantRefundRequestNo
|
||||
* @return AccountBookQueryRefundRequest
|
||||
*/
|
||||
public function setMerchantRefundRequestNo($merchantRefundRequestNo)
|
||||
{
|
||||
$this->merchantRefundRequestNo = $merchantRefundRequestNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'accountBookQueryRefund';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\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 AccountBookQueryRefundRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AccountBookQueryRefundRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountBookQueryRefundRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountBookQueryRefundRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Account';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/account/account-book/query-refund';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AccountBookQueryRefundRequest $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantRefundRequestNo() != null){
|
||||
$internalRequest->addParameter('merchantRefundRequestNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantRefundRequestNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AccountBookQueryRefundRequestMarshaller::__init();
|
||||
34
lib/Service/Account/Model/AccountBookQueryRefundResponse.php
Normal file
34
lib/Service/Account/Model/AccountBookQueryRefundResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class AccountBookQueryRefundResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var AccountBookQueryRefundQueryAccountBookRefundRespDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Account\Model\AccountBookQueryRefundQueryAccountBookRefundRespDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param AccountBookQueryRefundQueryAccountBookRefundRespDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountBookQueryRefundQueryAccountBookRefundRespDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AccountBookQueryRefundResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AccountBookQueryRefundResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountBookQueryRefundResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountBookQueryRefundResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountBookQueryRefundResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AccountBookQueryRefundResponse();
|
||||
}
|
||||
}
|
||||
|
||||
AccountBookQueryRefundResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,482 @@
|
||||
<?php
|
||||
/**
|
||||
* AccountBookRefundAccountBookRefundRespDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 账户
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* AccountBookRefundAccountBookRefundRespDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class AccountBookRefundAccountBookRefundRespDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'AccountBookRefundAccountBookRefundRespDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'returnCode' => 'string',
|
||||
'returnMsg' => 'string',
|
||||
'refundStatus' => 'string',
|
||||
'refundAmount' => 'float',
|
||||
'merchantRefundRequestNo' => 'string',
|
||||
'merchantOriginalRequestNo' => 'string',
|
||||
'refundOrderNo' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'returnCode' => null,
|
||||
'returnMsg' => null,
|
||||
'refundStatus' => null,
|
||||
'refundAmount' => null,
|
||||
'merchantRefundRequestNo' => null,
|
||||
'merchantOriginalRequestNo' => null,
|
||||
'refundOrderNo' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'returnCode' => 'returnCode',
|
||||
'returnMsg' => 'returnMsg',
|
||||
'refundStatus' => 'refundStatus',
|
||||
'refundAmount' => 'refundAmount',
|
||||
'merchantRefundRequestNo' => 'merchantRefundRequestNo',
|
||||
'merchantOriginalRequestNo' => 'merchantOriginalRequestNo',
|
||||
'refundOrderNo' => 'refundOrderNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'returnCode' => 'setReturnCode',
|
||||
'returnMsg' => 'setReturnMsg',
|
||||
'refundStatus' => 'setRefundStatus',
|
||||
'refundAmount' => 'setRefundAmount',
|
||||
'merchantRefundRequestNo' => 'setMerchantRefundRequestNo',
|
||||
'merchantOriginalRequestNo' => 'setMerchantOriginalRequestNo',
|
||||
'refundOrderNo' => 'setRefundOrderNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'returnCode' => 'getReturnCode',
|
||||
'returnMsg' => 'getReturnMsg',
|
||||
'refundStatus' => 'getRefundStatus',
|
||||
'refundAmount' => 'getRefundAmount',
|
||||
'merchantRefundRequestNo' => 'getMerchantRefundRequestNo',
|
||||
'merchantOriginalRequestNo' => 'getMerchantOriginalRequestNo',
|
||||
'refundOrderNo' => 'getRefundOrderNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
|
||||
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
|
||||
$this->container['refundStatus'] = isset($data['refundStatus']) ? $data['refundStatus'] : null;
|
||||
$this->container['refundAmount'] = isset($data['refundAmount']) ? $data['refundAmount'] : null;
|
||||
$this->container['merchantRefundRequestNo'] = isset($data['merchantRefundRequestNo']) ? $data['merchantRefundRequestNo'] : null;
|
||||
$this->container['merchantOriginalRequestNo'] = isset($data['merchantOriginalRequestNo']) ? $data['merchantOriginalRequestNo'] : null;
|
||||
$this->container['refundOrderNo'] = isset($data['refundOrderNo']) ? $data['refundOrderNo'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets returnCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnCode()
|
||||
{
|
||||
return $this->container['returnCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnCode
|
||||
*
|
||||
* @param string $returnCode 返回码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnCode($returnCode)
|
||||
{
|
||||
$this->container['returnCode'] = $returnCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets returnMsg
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnMsg()
|
||||
{
|
||||
return $this->container['returnMsg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnMsg
|
||||
*
|
||||
* @param string $returnMsg 返回信息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnMsg($returnMsg)
|
||||
{
|
||||
$this->container['returnMsg'] = $returnMsg;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets refundStatus
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRefundStatus()
|
||||
{
|
||||
return $this->container['refundStatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets refundStatus
|
||||
*
|
||||
* @param string $refundStatus 退款状态
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRefundStatus($refundStatus)
|
||||
{
|
||||
$this->container['refundStatus'] = $refundStatus;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets refundAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getRefundAmount()
|
||||
{
|
||||
return $this->container['refundAmount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets refundAmount
|
||||
*
|
||||
* @param float $refundAmount 退款金额
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRefundAmount($refundAmount)
|
||||
{
|
||||
$this->container['refundAmount'] = $refundAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantRefundRequestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantRefundRequestNo()
|
||||
{
|
||||
return $this->container['merchantRefundRequestNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantRefundRequestNo
|
||||
*
|
||||
* @param string $merchantRefundRequestNo 商户退款请求号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantRefundRequestNo($merchantRefundRequestNo)
|
||||
{
|
||||
$this->container['merchantRefundRequestNo'] = $merchantRefundRequestNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantOriginalRequestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantOriginalRequestNo()
|
||||
{
|
||||
return $this->container['merchantOriginalRequestNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantOriginalRequestNo
|
||||
*
|
||||
* @param string $merchantOriginalRequestNo 商户原单请求号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantOriginalRequestNo($merchantOriginalRequestNo)
|
||||
{
|
||||
$this->container['merchantOriginalRequestNo'] = $merchantOriginalRequestNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets refundOrderNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRefundOrderNo()
|
||||
{
|
||||
return $this->container['refundOrderNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets refundOrderNo
|
||||
*
|
||||
* @param string $refundOrderNo 易宝退款单号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRefundOrderNo($refundOrderNo)
|
||||
{
|
||||
$this->container['refundOrderNo'] = $refundOrderNo;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
192
lib/Service/Account/Model/AccountBookRefundRequest.php
Normal file
192
lib/Service/Account/Model/AccountBookRefundRequest.php
Normal file
@@ -0,0 +1,192 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class AccountBookRefundRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantRefundRequestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $originalOrderNo;
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
private $refundAmount;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $bankPostscrip;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo
|
||||
* @return AccountBookRefundRequest
|
||||
*/
|
||||
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 AccountBookRefundRequest
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantRefundRequestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantRefundRequestNo()
|
||||
{
|
||||
return $this->merchantRefundRequestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantRefundRequestNo
|
||||
*
|
||||
* @param string $merchantRefundRequestNo
|
||||
* @return AccountBookRefundRequest
|
||||
*/
|
||||
public function setMerchantRefundRequestNo($merchantRefundRequestNo)
|
||||
{
|
||||
$this->merchantRefundRequestNo = $merchantRefundRequestNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets originalOrderNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOriginalOrderNo()
|
||||
{
|
||||
return $this->originalOrderNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets originalOrderNo
|
||||
*
|
||||
* @param string $originalOrderNo
|
||||
* @return AccountBookRefundRequest
|
||||
*/
|
||||
public function setOriginalOrderNo($originalOrderNo)
|
||||
{
|
||||
$this->originalOrderNo = $originalOrderNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets refundAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getRefundAmount()
|
||||
{
|
||||
return $this->refundAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets refundAmount
|
||||
*
|
||||
* @param float $refundAmount
|
||||
* @return AccountBookRefundRequest
|
||||
*/
|
||||
public function setRefundAmount($refundAmount)
|
||||
{
|
||||
$this->refundAmount = $refundAmount;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets bankPostscrip
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBankPostscrip()
|
||||
{
|
||||
return $this->bankPostscrip;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankPostscrip
|
||||
*
|
||||
* @param string $bankPostscrip
|
||||
* @return AccountBookRefundRequest
|
||||
*/
|
||||
public function setBankPostscrip($bankPostscrip)
|
||||
{
|
||||
$this->bankPostscrip = $bankPostscrip;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
*
|
||||
* @param string $notifyUrl
|
||||
* @return AccountBookRefundRequest
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'accountBookRefund';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\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 AccountBookRefundRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AccountBookRefundRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountBookRefundRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountBookRefundRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Account';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/account/account-book/refund';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AccountBookRefundRequest $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantRefundRequestNo() != null){
|
||||
$internalRequest->addParameter('merchantRefundRequestNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantRefundRequestNo(), 'string'));
|
||||
}
|
||||
if($request->getOriginalOrderNo() != null){
|
||||
$internalRequest->addParameter('originalOrderNo', ObjectSerializer::sanitizeForSerialization($request->getOriginalOrderNo(), 'string'));
|
||||
}
|
||||
if($request->getRefundAmount() != null){
|
||||
$internalRequest->addParameter('refundAmount', ObjectSerializer::sanitizeForSerialization($request->getRefundAmount(), 'float'));
|
||||
}
|
||||
if($request->getBankPostscrip() != null){
|
||||
$internalRequest->addParameter('bankPostscrip', ObjectSerializer::sanitizeForSerialization($request->getBankPostscrip(), 'string'));
|
||||
}
|
||||
if($request->getNotifyUrl() != null){
|
||||
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AccountBookRefundRequestMarshaller::__init();
|
||||
34
lib/Service/Account/Model/AccountBookRefundResponse.php
Normal file
34
lib/Service/Account/Model/AccountBookRefundResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class AccountBookRefundResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var AccountBookRefundAccountBookRefundRespDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Account\Model\AccountBookRefundAccountBookRefundRespDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param AccountBookRefundAccountBookRefundRespDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountBookRefundAccountBookRefundRespDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AccountBookRefundResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AccountBookRefundResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountBookRefundResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountBookRefundResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountBookRefundResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AccountBookRefundResponse();
|
||||
}
|
||||
}
|
||||
|
||||
AccountBookRefundResponseUnMarshaller::__init();
|
||||
217
lib/Service/Account/Model/AccountIndividualApplyRequest.php
Normal file
217
lib/Service/Account/Model/AccountIndividualApplyRequest.php
Normal file
@@ -0,0 +1,217 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class AccountIndividualApplyRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $name;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $certificateType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $certificateNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $phone;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $frontUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contraryUrl;
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo
|
||||
* @return AccountIndividualApplyRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return AccountIndividualApplyRequest
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name
|
||||
*
|
||||
* @param string $name
|
||||
* @return AccountIndividualApplyRequest
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets certificateType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCertificateType()
|
||||
{
|
||||
return $this->certificateType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets certificateType
|
||||
*
|
||||
* @param string $certificateType
|
||||
* @return AccountIndividualApplyRequest
|
||||
*/
|
||||
public function setCertificateType($certificateType)
|
||||
{
|
||||
$this->certificateType = $certificateType;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets certificateNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCertificateNo()
|
||||
{
|
||||
return $this->certificateNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets certificateNo
|
||||
*
|
||||
* @param string $certificateNo
|
||||
* @return AccountIndividualApplyRequest
|
||||
*/
|
||||
public function setCertificateNo($certificateNo)
|
||||
{
|
||||
$this->certificateNo = $certificateNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets phone
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPhone()
|
||||
{
|
||||
return $this->phone;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets phone
|
||||
*
|
||||
* @param string $phone
|
||||
* @return AccountIndividualApplyRequest
|
||||
*/
|
||||
public function setPhone($phone)
|
||||
{
|
||||
$this->phone = $phone;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets frontUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFrontUrl()
|
||||
{
|
||||
return $this->frontUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets frontUrl
|
||||
*
|
||||
* @param string $frontUrl
|
||||
* @return AccountIndividualApplyRequest
|
||||
*/
|
||||
public function setFrontUrl($frontUrl)
|
||||
{
|
||||
$this->frontUrl = $frontUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets contraryUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getContraryUrl()
|
||||
{
|
||||
return $this->contraryUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets contraryUrl
|
||||
*
|
||||
* @param string $contraryUrl
|
||||
* @return AccountIndividualApplyRequest
|
||||
*/
|
||||
public function setContraryUrl($contraryUrl)
|
||||
{
|
||||
$this->contraryUrl = $contraryUrl;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'account_individual_apply';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\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 AccountIndividualApplyRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AccountIndividualApplyRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountIndividualApplyRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountIndividualApplyRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Account';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/account/individual/apply';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AccountIndividualApplyRequest $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getRequestNo() != null){
|
||||
$internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
|
||||
}
|
||||
if($request->getName() != null){
|
||||
$internalRequest->addParameter('name', ObjectSerializer::sanitizeForSerialization($request->getName(), 'string'));
|
||||
}
|
||||
if($request->getCertificateType() != null){
|
||||
$internalRequest->addParameter('certificateType', ObjectSerializer::sanitizeForSerialization($request->getCertificateType(), 'string', 'enum'));
|
||||
}
|
||||
if($request->getCertificateNo() != null){
|
||||
$internalRequest->addParameter('certificateNo', ObjectSerializer::sanitizeForSerialization($request->getCertificateNo(), 'string'));
|
||||
}
|
||||
if($request->getPhone() != null){
|
||||
$internalRequest->addParameter('phone', ObjectSerializer::sanitizeForSerialization($request->getPhone(), 'string'));
|
||||
}
|
||||
if($request->getFrontUrl() != null){
|
||||
$internalRequest->addParameter('frontUrl', ObjectSerializer::sanitizeForSerialization($request->getFrontUrl(), 'string'));
|
||||
}
|
||||
if($request->getContraryUrl() != null){
|
||||
$internalRequest->addParameter('contraryUrl', ObjectSerializer::sanitizeForSerialization($request->getContraryUrl(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AccountIndividualApplyRequestMarshaller::__init();
|
||||
34
lib/Service/Account/Model/AccountIndividualApplyResponse.php
Normal file
34
lib/Service/Account/Model/AccountIndividualApplyResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class AccountIndividualApplyResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var ApplyIndividualRespDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Account\Model\ApplyIndividualRespDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ApplyIndividualRespDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ApplyIndividualRespDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AccountIndividualApplyResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AccountIndividualApplyResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountIndividualApplyResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountIndividualApplyResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountIndividualApplyResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AccountIndividualApplyResponse();
|
||||
}
|
||||
}
|
||||
|
||||
AccountIndividualApplyResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class AccountIndividualQueryProgressRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return AccountIndividualQueryProgressRequest
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'account_individual_query_progress';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\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 AccountIndividualQueryProgressRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AccountIndividualQueryProgressRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountIndividualQueryProgressRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountIndividualQueryProgressRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Account';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/account/individual/query-progress';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AccountIndividualQueryProgressRequest $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
if($request->getRequestNo() != null){
|
||||
$internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AccountIndividualQueryProgressRequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class AccountIndividualQueryProgressResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var ApplyIndivdualProgressRespDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Account\Model\ApplyIndivdualProgressRespDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ApplyIndivdualProgressRespDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ApplyIndivdualProgressRespDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AccountIndividualQueryProgressResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AccountIndividualQueryProgressResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountIndividualQueryProgressResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountIndividualQueryProgressResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountIndividualQueryProgressResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AccountIndividualQueryProgressResponse();
|
||||
}
|
||||
}
|
||||
|
||||
AccountIndividualQueryProgressResponseUnMarshaller::__init();
|
||||
42
lib/Service/Account/Model/AccountIndividualQueryRequest.php
Normal file
42
lib/Service/Account/Model/AccountIndividualQueryRequest.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class AccountIndividualQueryRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo
|
||||
* @return AccountIndividualQueryRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'account_individual_query';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\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 AccountIndividualQueryRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AccountIndividualQueryRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountIndividualQueryRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountIndividualQueryRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Account';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/account/individual/query';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AccountIndividualQueryRequest $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AccountIndividualQueryRequestMarshaller::__init();
|
||||
34
lib/Service/Account/Model/AccountIndividualQueryResponse.php
Normal file
34
lib/Service/Account/Model/AccountIndividualQueryResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class AccountIndividualQueryResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var QueryIndividualRespDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Account\Model\QueryIndividualRespDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param QueryIndividualRespDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return QueryIndividualRespDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AccountIndividualQueryResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AccountIndividualQueryResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountIndividualQueryResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountIndividualQueryResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountIndividualQueryResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AccountIndividualQueryResponse();
|
||||
}
|
||||
}
|
||||
|
||||
AccountIndividualQueryResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,482 @@
|
||||
<?php
|
||||
/**
|
||||
* AccountManageAccountOpenAccountBookCreateResponseDtoResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 账户
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* AccountManageAccountOpenAccountBookCreateResponseDtoResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class AccountManageAccountOpenAccountBookCreateResponseDtoResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'AccountManageAccountOpenAccountBookCreateResponseDtoResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'returnCode' => 'string',
|
||||
'returnMsg' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'merchantAccountBookNo' => 'string',
|
||||
'ypAccountBookNo' => 'string',
|
||||
'status' => 'string',
|
||||
'createTime' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'returnCode' => null,
|
||||
'returnMsg' => null,
|
||||
'merchantNo' => null,
|
||||
'merchantAccountBookNo' => null,
|
||||
'ypAccountBookNo' => null,
|
||||
'status' => null,
|
||||
'createTime' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'returnCode' => 'returnCode',
|
||||
'returnMsg' => 'returnMsg',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'merchantAccountBookNo' => 'merchantAccountBookNo',
|
||||
'ypAccountBookNo' => 'ypAccountBookNo',
|
||||
'status' => 'status',
|
||||
'createTime' => 'createTime'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'returnCode' => 'setReturnCode',
|
||||
'returnMsg' => 'setReturnMsg',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'merchantAccountBookNo' => 'setMerchantAccountBookNo',
|
||||
'ypAccountBookNo' => 'setYpAccountBookNo',
|
||||
'status' => 'setStatus',
|
||||
'createTime' => 'setCreateTime'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'returnCode' => 'getReturnCode',
|
||||
'returnMsg' => 'getReturnMsg',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'merchantAccountBookNo' => 'getMerchantAccountBookNo',
|
||||
'ypAccountBookNo' => 'getYpAccountBookNo',
|
||||
'status' => 'getStatus',
|
||||
'createTime' => 'getCreateTime'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
|
||||
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['merchantAccountBookNo'] = isset($data['merchantAccountBookNo']) ? $data['merchantAccountBookNo'] : null;
|
||||
$this->container['ypAccountBookNo'] = isset($data['ypAccountBookNo']) ? $data['ypAccountBookNo'] : null;
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
$this->container['createTime'] = isset($data['createTime']) ? $data['createTime'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets returnCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnCode()
|
||||
{
|
||||
return $this->container['returnCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnCode
|
||||
*
|
||||
* @param string $returnCode 返回码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnCode($returnCode)
|
||||
{
|
||||
$this->container['returnCode'] = $returnCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets returnMsg
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnMsg()
|
||||
{
|
||||
return $this->container['returnMsg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnMsg
|
||||
*
|
||||
* @param string $returnMsg 返回信息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnMsg($returnMsg)
|
||||
{
|
||||
$this->container['returnMsg'] = $returnMsg;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets 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 merchantAccountBookNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantAccountBookNo()
|
||||
{
|
||||
return $this->container['merchantAccountBookNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantAccountBookNo
|
||||
*
|
||||
* @param string $merchantAccountBookNo 商户侧记账簿编号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantAccountBookNo($merchantAccountBookNo)
|
||||
{
|
||||
$this->container['merchantAccountBookNo'] = $merchantAccountBookNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets ypAccountBookNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getYpAccountBookNo()
|
||||
{
|
||||
return $this->container['ypAccountBookNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets ypAccountBookNo
|
||||
*
|
||||
* @param string $ypAccountBookNo 易宝记账薄编号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setYpAccountBookNo($ypAccountBookNo)
|
||||
{
|
||||
$this->container['ypAccountBookNo'] = $ypAccountBookNo;
|
||||
|
||||
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 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;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
117
lib/Service/Account/Model/AccountManageAccountOpenRequest.php
Normal file
117
lib/Service/Account/Model/AccountManageAccountOpenRequest.php
Normal file
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class AccountManageAccountOpenRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantAccountBookNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantAccountBookName;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return AccountManageAccountOpenRequest
|
||||
*/
|
||||
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 AccountManageAccountOpenRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantAccountBookNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantAccountBookNo()
|
||||
{
|
||||
return $this->merchantAccountBookNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantAccountBookNo
|
||||
*
|
||||
* @param string $merchantAccountBookNo
|
||||
* @return AccountManageAccountOpenRequest
|
||||
*/
|
||||
public function setMerchantAccountBookNo($merchantAccountBookNo)
|
||||
{
|
||||
$this->merchantAccountBookNo = $merchantAccountBookNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantAccountBookName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantAccountBookName()
|
||||
{
|
||||
return $this->merchantAccountBookName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantAccountBookName
|
||||
*
|
||||
* @param string $merchantAccountBookName
|
||||
* @return AccountManageAccountOpenRequest
|
||||
*/
|
||||
public function setMerchantAccountBookName($merchantAccountBookName)
|
||||
{
|
||||
$this->merchantAccountBookName = $merchantAccountBookName;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'accountManageAccountOpen';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\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 AccountManageAccountOpenRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AccountManageAccountOpenRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountManageAccountOpenRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountManageAccountOpenRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Account';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/account/account-manage/account/open';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AccountManageAccountOpenRequest $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->getMerchantAccountBookNo() != null){
|
||||
$internalRequest->addParameter('merchantAccountBookNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantAccountBookNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantAccountBookName() != null){
|
||||
$internalRequest->addParameter('merchantAccountBookName', ObjectSerializer::sanitizeForSerialization($request->getMerchantAccountBookName(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AccountManageAccountOpenRequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class AccountManageAccountOpenResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var AccountManageAccountOpenAccountBookCreateResponseDtoResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Account\Model\AccountManageAccountOpenAccountBookCreateResponseDtoResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param AccountManageAccountOpenAccountBookCreateResponseDtoResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountManageAccountOpenAccountBookCreateResponseDtoResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AccountManageAccountOpenResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AccountManageAccountOpenResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountManageAccountOpenResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountManageAccountOpenResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountManageAccountOpenResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AccountManageAccountOpenResponse();
|
||||
}
|
||||
}
|
||||
|
||||
AccountManageAccountOpenResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,452 @@
|
||||
<?php
|
||||
/**
|
||||
* AccountManageAccountQueryAccountBalanceQueryResponseDtoResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 账户
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* AccountManageAccountQueryAccountBalanceQueryResponseDtoResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class AccountManageAccountQueryAccountBalanceQueryResponseDtoResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'AccountManageAccountQueryAccountBalanceQueryResponseDtoResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'returnCode' => 'string',
|
||||
'returnMsg' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'merchantAccountBookNo' => 'string',
|
||||
'ypAccountBookNo' => 'string',
|
||||
'balance' => 'float'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'returnCode' => null,
|
||||
'returnMsg' => null,
|
||||
'merchantNo' => null,
|
||||
'merchantAccountBookNo' => null,
|
||||
'ypAccountBookNo' => null,
|
||||
'balance' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'returnCode' => 'returnCode',
|
||||
'returnMsg' => 'returnMsg',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'merchantAccountBookNo' => 'merchantAccountBookNo',
|
||||
'ypAccountBookNo' => 'ypAccountBookNo',
|
||||
'balance' => 'balance'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'returnCode' => 'setReturnCode',
|
||||
'returnMsg' => 'setReturnMsg',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'merchantAccountBookNo' => 'setMerchantAccountBookNo',
|
||||
'ypAccountBookNo' => 'setYpAccountBookNo',
|
||||
'balance' => 'setBalance'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'returnCode' => 'getReturnCode',
|
||||
'returnMsg' => 'getReturnMsg',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'merchantAccountBookNo' => 'getMerchantAccountBookNo',
|
||||
'ypAccountBookNo' => 'getYpAccountBookNo',
|
||||
'balance' => 'getBalance'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
|
||||
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['merchantAccountBookNo'] = isset($data['merchantAccountBookNo']) ? $data['merchantAccountBookNo'] : null;
|
||||
$this->container['ypAccountBookNo'] = isset($data['ypAccountBookNo']) ? $data['ypAccountBookNo'] : null;
|
||||
$this->container['balance'] = isset($data['balance']) ? $data['balance'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets returnCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnCode()
|
||||
{
|
||||
return $this->container['returnCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnCode
|
||||
*
|
||||
* @param string $returnCode 返回码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnCode($returnCode)
|
||||
{
|
||||
$this->container['returnCode'] = $returnCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets returnMsg
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnMsg()
|
||||
{
|
||||
return $this->container['returnMsg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnMsg
|
||||
*
|
||||
* @param string $returnMsg 返回信息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnMsg($returnMsg)
|
||||
{
|
||||
$this->container['returnMsg'] = $returnMsg;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets 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 merchantAccountBookNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantAccountBookNo()
|
||||
{
|
||||
return $this->container['merchantAccountBookNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantAccountBookNo
|
||||
*
|
||||
* @param string $merchantAccountBookNo 商户侧记账簿编号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantAccountBookNo($merchantAccountBookNo)
|
||||
{
|
||||
$this->container['merchantAccountBookNo'] = $merchantAccountBookNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets ypAccountBookNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getYpAccountBookNo()
|
||||
{
|
||||
return $this->container['ypAccountBookNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets ypAccountBookNo
|
||||
*
|
||||
* @param string $ypAccountBookNo 易宝记账薄编号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setYpAccountBookNo($ypAccountBookNo)
|
||||
{
|
||||
$this->container['ypAccountBookNo'] = $ypAccountBookNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets balance
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getBalance()
|
||||
{
|
||||
return $this->container['balance'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets balance
|
||||
*
|
||||
* @param float $balance 记账簿余额
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBalance($balance)
|
||||
{
|
||||
$this->container['balance'] = $balance;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
117
lib/Service/Account/Model/AccountManageAccountQueryRequest.php
Normal file
117
lib/Service/Account/Model/AccountManageAccountQueryRequest.php
Normal file
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class AccountManageAccountQueryRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantAccountBookNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $ypAccountBookNo;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return AccountManageAccountQueryRequest
|
||||
*/
|
||||
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 AccountManageAccountQueryRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantAccountBookNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantAccountBookNo()
|
||||
{
|
||||
return $this->merchantAccountBookNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantAccountBookNo
|
||||
*
|
||||
* @param string $merchantAccountBookNo
|
||||
* @return AccountManageAccountQueryRequest
|
||||
*/
|
||||
public function setMerchantAccountBookNo($merchantAccountBookNo)
|
||||
{
|
||||
$this->merchantAccountBookNo = $merchantAccountBookNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets ypAccountBookNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getYpAccountBookNo()
|
||||
{
|
||||
return $this->ypAccountBookNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets ypAccountBookNo
|
||||
*
|
||||
* @param string $ypAccountBookNo
|
||||
* @return AccountManageAccountQueryRequest
|
||||
*/
|
||||
public function setYpAccountBookNo($ypAccountBookNo)
|
||||
{
|
||||
$this->ypAccountBookNo = $ypAccountBookNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'accountManageAccountQuery';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\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 AccountManageAccountQueryRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AccountManageAccountQueryRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountManageAccountQueryRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountManageAccountQueryRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Account';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/account/account-manage/account/query';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AccountManageAccountQueryRequest $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->getMerchantAccountBookNo() != null){
|
||||
$internalRequest->addParameter('merchantAccountBookNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantAccountBookNo(), 'string'));
|
||||
}
|
||||
if($request->getYpAccountBookNo() != null){
|
||||
$internalRequest->addParameter('ypAccountBookNo', ObjectSerializer::sanitizeForSerialization($request->getYpAccountBookNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AccountManageAccountQueryRequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class AccountManageAccountQueryResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var AccountManageAccountQueryAccountBalanceQueryResponseDtoResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Account\Model\AccountManageAccountQueryAccountBalanceQueryResponseDtoResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param AccountManageAccountQueryAccountBalanceQueryResponseDtoResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountManageAccountQueryAccountBalanceQueryResponseDtoResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AccountManageAccountQueryResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AccountManageAccountQueryResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountManageAccountQueryResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountManageAccountQueryResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountManageAccountQueryResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AccountManageAccountQueryResponse();
|
||||
}
|
||||
}
|
||||
|
||||
AccountManageAccountQueryResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class AccountManageBankAccountOpenRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var
|
||||
*/
|
||||
private $body;
|
||||
|
||||
/**
|
||||
* Gets body
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public function getBody()
|
||||
{
|
||||
return $this->body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets body
|
||||
*
|
||||
* @param $body
|
||||
* @return AccountManageBankAccountOpenRequest
|
||||
*/
|
||||
public function setBody($body)
|
||||
{
|
||||
$this->body = $body;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'accountManageBankAccountOpen';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\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 AccountManageBankAccountOpenRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AccountManageBankAccountOpenRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountManageBankAccountOpenRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountManageBankAccountOpenRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Account';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/account/account-manage/bank-account/open';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/json';
|
||||
|
||||
|
||||
/**
|
||||
* @param AccountManageBankAccountOpenRequest $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;
|
||||
}
|
||||
}
|
||||
AccountManageBankAccountOpenRequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class AccountManageBankAccountOpenResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var StandardOpenAccountResponseDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Account\Model\StandardOpenAccountResponseDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param StandardOpenAccountResponseDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return StandardOpenAccountResponseDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AccountManageBankAccountOpenResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AccountManageBankAccountOpenResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountManageBankAccountOpenResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountManageBankAccountOpenResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountManageBankAccountOpenResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AccountManageBankAccountOpenResponse();
|
||||
}
|
||||
}
|
||||
|
||||
AccountManageBankAccountOpenResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class AccountManageBankAccountQueryRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return AccountManageBankAccountQueryRequest
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return AccountManageBankAccountQueryRequest
|
||||
*/
|
||||
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 AccountManageBankAccountQueryRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'accountManageBankAccountQuery';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\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 AccountManageBankAccountQueryRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AccountManageBankAccountQueryRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountManageBankAccountQueryRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountManageBankAccountQueryRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Account';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/account/account-manage/bank-account/query';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AccountManageBankAccountQueryRequest $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
if($request->getRequestNo() != null){
|
||||
$internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AccountManageBankAccountQueryRequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class AccountManageBankAccountQueryResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var StandardOpenAccountQueryResponseDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Account\Model\StandardOpenAccountQueryResponseDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param StandardOpenAccountQueryResponseDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return StandardOpenAccountQueryResponseDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AccountManageBankAccountQueryResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AccountManageBankAccountQueryResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountManageBankAccountQueryResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountManageBankAccountQueryResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountManageBankAccountQueryResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AccountManageBankAccountQueryResponse();
|
||||
}
|
||||
}
|
||||
|
||||
AccountManageBankAccountQueryResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class AccountManageBankAccountQueryV10Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return AccountManageBankAccountQueryV10Request
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return AccountManageBankAccountQueryV10Request
|
||||
*/
|
||||
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 AccountManageBankAccountQueryV10Request
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'account_manage_bank_account_query_v1_0';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\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 AccountManageBankAccountQueryV10RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AccountManageBankAccountQueryV10RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountManageBankAccountQueryV10RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountManageBankAccountQueryV10RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Account';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/account/account-manage/bank-account/query';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AccountManageBankAccountQueryV10Request $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
if($request->getRequestNo() != null){
|
||||
$internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AccountManageBankAccountQueryV10RequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class AccountManageBankAccountQueryV10Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var StandardOpenAccountQueryResponseDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Account\Model\StandardOpenAccountQueryResponseDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param StandardOpenAccountQueryResponseDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return StandardOpenAccountQueryResponseDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AccountManageBankAccountQueryV10ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AccountManageBankAccountQueryV10ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountManageBankAccountQueryV10ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountManageBankAccountQueryV10ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountManageBankAccountQueryV10Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AccountManageBankAccountQueryV10Response();
|
||||
}
|
||||
}
|
||||
|
||||
AccountManageBankAccountQueryV10ResponseUnMarshaller::__init();
|
||||
580
lib/Service/Account/Model/ApplyIndivdualProgressRespDTO.php
Normal file
580
lib/Service/Account/Model/ApplyIndivdualProgressRespDTO.php
Normal file
@@ -0,0 +1,580 @@
|
||||
<?php
|
||||
/**
|
||||
* ApplyIndivdualProgressRespDTO
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 账户
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* ApplyIndivdualProgressRespDTO Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description 查询付款到个人进度返回体
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class ApplyIndivdualProgressRespDTO implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'ApplyIndivdualProgressRespDTO';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'returnCode' => 'string',
|
||||
'returnMsg' => 'string',
|
||||
'id' => 'int',
|
||||
'finishTime' => '\DateTime',
|
||||
'applicationStatus' => 'string',
|
||||
'failReason' => 'string',
|
||||
'requestNo' => 'string',
|
||||
'applyTime' => '\DateTime',
|
||||
'merchantNo' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'returnCode' => null,
|
||||
'returnMsg' => null,
|
||||
'id' => 'int64',
|
||||
'finishTime' => 'date-time',
|
||||
'applicationStatus' => 'enum',
|
||||
'failReason' => null,
|
||||
'requestNo' => null,
|
||||
'applyTime' => 'date-time',
|
||||
'merchantNo' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'returnCode' => 'returnCode',
|
||||
'returnMsg' => 'returnMsg',
|
||||
'id' => 'id',
|
||||
'finishTime' => 'finishTime',
|
||||
'applicationStatus' => 'applicationStatus',
|
||||
'failReason' => 'failReason',
|
||||
'requestNo' => 'requestNo',
|
||||
'applyTime' => 'applyTime',
|
||||
'merchantNo' => 'merchantNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'returnCode' => 'setReturnCode',
|
||||
'returnMsg' => 'setReturnMsg',
|
||||
'id' => 'setId',
|
||||
'finishTime' => 'setFinishTime',
|
||||
'applicationStatus' => 'setApplicationStatus',
|
||||
'failReason' => 'setFailReason',
|
||||
'requestNo' => 'setRequestNo',
|
||||
'applyTime' => 'setApplyTime',
|
||||
'merchantNo' => 'setMerchantNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'returnCode' => 'getReturnCode',
|
||||
'returnMsg' => 'getReturnMsg',
|
||||
'id' => 'getId',
|
||||
'finishTime' => 'getFinishTime',
|
||||
'applicationStatus' => 'getApplicationStatus',
|
||||
'failReason' => 'getFailReason',
|
||||
'requestNo' => 'getRequestNo',
|
||||
'applyTime' => 'getApplyTime',
|
||||
'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;
|
||||
}
|
||||
|
||||
const APPLICATION_STATUS_SUCCESS = 'SUCCESS';
|
||||
const APPLICATION_STATUS_REJECT = 'REJECT';
|
||||
const APPLICATION_STATUS_RECEIVE = 'RECEIVE';
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets allowable values of the enum
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public function getApplicationStatusAllowableValues()
|
||||
{
|
||||
return [
|
||||
self::APPLICATION_STATUS_SUCCESS,
|
||||
self::APPLICATION_STATUS_REJECT,
|
||||
self::APPLICATION_STATUS_RECEIVE,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
|
||||
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
|
||||
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
|
||||
$this->container['finishTime'] = isset($data['finishTime']) ? $data['finishTime'] : null;
|
||||
$this->container['applicationStatus'] = isset($data['applicationStatus']) ? $data['applicationStatus'] : null;
|
||||
$this->container['failReason'] = isset($data['failReason']) ? $data['failReason'] : null;
|
||||
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
|
||||
$this->container['applyTime'] = isset($data['applyTime']) ? $data['applyTime'] : 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['returnCode'] === null) {
|
||||
$invalidProperties[] = "'returnCode' can't be null";
|
||||
}
|
||||
$allowedValues = $this->getApplicationStatusAllowableValues();
|
||||
if (!is_null($this->container['applicationStatus']) && !in_array($this->container['applicationStatus'], $allowedValues, true)) {
|
||||
$invalidProperties[] = sprintf(
|
||||
"invalid value for 'applicationStatus', must be one of '%s'",
|
||||
implode("', '", $allowedValues)
|
||||
);
|
||||
}
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets returnCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnCode()
|
||||
{
|
||||
return $this->container['returnCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnCode
|
||||
*
|
||||
* @param string $returnCode <p>返回码,响应成功时返回UA00000</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnCode($returnCode)
|
||||
{
|
||||
$this->container['returnCode'] = $returnCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets returnMsg
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnMsg()
|
||||
{
|
||||
return $this->container['returnMsg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnMsg
|
||||
*
|
||||
* @param string $returnMsg <p>返回信息</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnMsg($returnMsg)
|
||||
{
|
||||
$this->container['returnMsg'] = $returnMsg;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets id
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->container['id'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets id
|
||||
*
|
||||
* @param int $id <p>收款方id</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setId($id)
|
||||
{
|
||||
$this->container['id'] = $id;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets finishTime
|
||||
*
|
||||
* @return \DateTime
|
||||
*/
|
||||
public function getFinishTime()
|
||||
{
|
||||
return $this->container['finishTime'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets finishTime
|
||||
*
|
||||
* @param \DateTime $finishTime <p>完成时间</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setFinishTime($finishTime)
|
||||
{
|
||||
$this->container['finishTime'] = $finishTime;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets applicationStatus
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getApplicationStatus()
|
||||
{
|
||||
return $this->container['applicationStatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets applicationStatus
|
||||
*
|
||||
* @param string $applicationStatus <p>申请状态</p> 可选项如下: SUCCESS:成功 REJECT:失败 RECEIVE:处理中
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setApplicationStatus($applicationStatus)
|
||||
{
|
||||
$allowedValues = $this->getApplicationStatusAllowableValues();
|
||||
if (!is_null($applicationStatus) && !in_array($applicationStatus, $allowedValues, true)) {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf(
|
||||
"Invalid value for 'applicationStatus', must be one of '%s'",
|
||||
implode("', '", $allowedValues)
|
||||
)
|
||||
);
|
||||
}
|
||||
$this->container['applicationStatus'] = $applicationStatus;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets failReason
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFailReason()
|
||||
{
|
||||
return $this->container['failReason'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets failReason
|
||||
*
|
||||
* @param string $failReason <p>失败原因</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setFailReason($failReason)
|
||||
{
|
||||
$this->container['failReason'] = $failReason;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->container['requestNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo <p>商户请求号</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->container['requestNo'] = $requestNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets applyTime
|
||||
*
|
||||
* @return \DateTime
|
||||
*/
|
||||
public function getApplyTime()
|
||||
{
|
||||
return $this->container['applyTime'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets applyTime
|
||||
*
|
||||
* @param \DateTime $applyTime <p>申请时间</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setApplyTime($applyTime)
|
||||
{
|
||||
$this->container['applyTime'] = $applyTime;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
499
lib/Service/Account/Model/ApplyIndividualRespDTO.php
Normal file
499
lib/Service/Account/Model/ApplyIndividualRespDTO.php
Normal file
@@ -0,0 +1,499 @@
|
||||
<?php
|
||||
/**
|
||||
* ApplyIndividualRespDTO
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 账户
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* ApplyIndividualRespDTO Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description 申请添加个人用户返回体
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class ApplyIndividualRespDTO implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'ApplyIndividualRespDTO';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'returnCode' => 'string',
|
||||
'returnMsg' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'requestNo' => 'string',
|
||||
'applicationStatus' => 'string',
|
||||
'id' => 'int'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'returnCode' => null,
|
||||
'returnMsg' => null,
|
||||
'merchantNo' => null,
|
||||
'requestNo' => null,
|
||||
'applicationStatus' => 'enum',
|
||||
'id' => 'int64'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'returnCode' => 'returnCode',
|
||||
'returnMsg' => 'returnMsg',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'requestNo' => 'requestNo',
|
||||
'applicationStatus' => 'applicationStatus',
|
||||
'id' => 'id'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'returnCode' => 'setReturnCode',
|
||||
'returnMsg' => 'setReturnMsg',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'requestNo' => 'setRequestNo',
|
||||
'applicationStatus' => 'setApplicationStatus',
|
||||
'id' => 'setId'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'returnCode' => 'getReturnCode',
|
||||
'returnMsg' => 'getReturnMsg',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'requestNo' => 'getRequestNo',
|
||||
'applicationStatus' => 'getApplicationStatus',
|
||||
'id' => 'getId'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
const APPLICATION_STATUS_SUCCESS = 'SUCCESS';
|
||||
const APPLICATION_STATUS_REJECT = 'REJECT';
|
||||
const APPLICATION_STATUS_RECEIVE = 'RECEIVE';
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets allowable values of the enum
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public function getApplicationStatusAllowableValues()
|
||||
{
|
||||
return [
|
||||
self::APPLICATION_STATUS_SUCCESS,
|
||||
self::APPLICATION_STATUS_REJECT,
|
||||
self::APPLICATION_STATUS_RECEIVE,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
|
||||
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
|
||||
$this->container['applicationStatus'] = isset($data['applicationStatus']) ? $data['applicationStatus'] : null;
|
||||
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
if ($this->container['returnCode'] === null) {
|
||||
$invalidProperties[] = "'returnCode' can't be null";
|
||||
}
|
||||
if ($this->container['merchantNo'] === null) {
|
||||
$invalidProperties[] = "'merchantNo' can't be null";
|
||||
}
|
||||
if ($this->container['requestNo'] === null) {
|
||||
$invalidProperties[] = "'requestNo' can't be null";
|
||||
}
|
||||
if ($this->container['applicationStatus'] === null) {
|
||||
$invalidProperties[] = "'applicationStatus' can't be null";
|
||||
}
|
||||
$allowedValues = $this->getApplicationStatusAllowableValues();
|
||||
if (!is_null($this->container['applicationStatus']) && !in_array($this->container['applicationStatus'], $allowedValues, true)) {
|
||||
$invalidProperties[] = sprintf(
|
||||
"invalid value for 'applicationStatus', must be one of '%s'",
|
||||
implode("', '", $allowedValues)
|
||||
);
|
||||
}
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets returnCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnCode()
|
||||
{
|
||||
return $this->container['returnCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnCode
|
||||
*
|
||||
* @param string $returnCode <p>返回码,响应成功时返回UA00000</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnCode($returnCode)
|
||||
{
|
||||
$this->container['returnCode'] = $returnCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets returnMsg
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnMsg()
|
||||
{
|
||||
return $this->container['returnMsg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnMsg
|
||||
*
|
||||
* @param string $returnMsg <p>返回信息</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnMsg($returnMsg)
|
||||
{
|
||||
$this->container['returnMsg'] = $returnMsg;
|
||||
|
||||
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 requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->container['requestNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo <p>商户请求号</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->container['requestNo'] = $requestNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets applicationStatus
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getApplicationStatus()
|
||||
{
|
||||
return $this->container['applicationStatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets applicationStatus
|
||||
*
|
||||
* @param string $applicationStatus <p>申请状态<br /><br /></p> 可选项如下: SUCCESS:成功 REJECT:失败 RECEIVE:处理中
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setApplicationStatus($applicationStatus)
|
||||
{
|
||||
$allowedValues = $this->getApplicationStatusAllowableValues();
|
||||
if (!in_array($applicationStatus, $allowedValues, true)) {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf(
|
||||
"Invalid value for 'applicationStatus', must be one of '%s'",
|
||||
implode("', '", $allowedValues)
|
||||
)
|
||||
);
|
||||
}
|
||||
$this->container['applicationStatus'] = $applicationStatus;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets id
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->container['id'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets id
|
||||
*
|
||||
* @param int $id <p>收款方id,申请成功时返回</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setId($id)
|
||||
{
|
||||
$this->container['id'] = $id;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
92
lib/Service/Account/Model/BankAccountAuthApplyRequest.php
Normal file
92
lib/Service/Account/Model/BankAccountAuthApplyRequest.php
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class BankAccountAuthApplyRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return BankAccountAuthApplyRequest
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return BankAccountAuthApplyRequest
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo
|
||||
* @return BankAccountAuthApplyRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'bank_account_auth_apply';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\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 BankAccountAuthApplyRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var BankAccountAuthApplyRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BankAccountAuthApplyRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BankAccountAuthApplyRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Account';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/account/bank-account/auth-apply';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param BankAccountAuthApplyRequest $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getRequestNo() != null){
|
||||
$internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
BankAccountAuthApplyRequestMarshaller::__init();
|
||||
34
lib/Service/Account/Model/BankAccountAuthApplyResponse.php
Normal file
34
lib/Service/Account/Model/BankAccountAuthApplyResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class BankAccountAuthApplyResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var OpenAccountAuthApplyRespDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Account\Model\OpenAccountAuthApplyRespDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param OpenAccountAuthApplyRespDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return OpenAccountAuthApplyRespDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class BankAccountAuthApplyResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BankAccountAuthApplyResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BankAccountAuthApplyResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BankAccountAuthApplyResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BankAccountAuthApplyResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new BankAccountAuthApplyResponse();
|
||||
}
|
||||
}
|
||||
|
||||
BankAccountAuthApplyResponseUnMarshaller::__init();
|
||||
117
lib/Service/Account/Model/BankAccountAuthConfirmRequest.php
Normal file
117
lib/Service/Account/Model/BankAccountAuthConfirmRequest.php
Normal file
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class BankAccountAuthConfirmRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $authCode;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* Gets authCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAuthCode()
|
||||
{
|
||||
return $this->authCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets authCode
|
||||
*
|
||||
* @param string $authCode
|
||||
* @return BankAccountAuthConfirmRequest
|
||||
*/
|
||||
public function setAuthCode($authCode)
|
||||
{
|
||||
$this->authCode = $authCode;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return BankAccountAuthConfirmRequest
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return BankAccountAuthConfirmRequest
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo
|
||||
* @return BankAccountAuthConfirmRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'bank_account_auth_confirm';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\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 BankAccountAuthConfirmRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var BankAccountAuthConfirmRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BankAccountAuthConfirmRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BankAccountAuthConfirmRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Account';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/account/bank-account/auth-confirm';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param BankAccountAuthConfirmRequest $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->getAuthCode() != null){
|
||||
$internalRequest->addParameter('authCode', ObjectSerializer::sanitizeForSerialization($request->getAuthCode(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getRequestNo() != null){
|
||||
$internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
BankAccountAuthConfirmRequestMarshaller::__init();
|
||||
34
lib/Service/Account/Model/BankAccountAuthConfirmResponse.php
Normal file
34
lib/Service/Account/Model/BankAccountAuthConfirmResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class BankAccountAuthConfirmResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var OpenAccountAuthConfirmRespDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Account\Model\OpenAccountAuthConfirmRespDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param OpenAccountAuthConfirmRespDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return OpenAccountAuthConfirmRespDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class BankAccountAuthConfirmResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BankAccountAuthConfirmResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BankAccountAuthConfirmResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BankAccountAuthConfirmResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BankAccountAuthConfirmResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new BankAccountAuthConfirmResponse();
|
||||
}
|
||||
}
|
||||
|
||||
BankAccountAuthConfirmResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,393 @@
|
||||
<?php
|
||||
/**
|
||||
* BankPaymentOrderBankAccountPaymentPayerInfoDtoParam
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 账户
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* BankPaymentOrderBankAccountPaymentPayerInfoDtoParam Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description 付款方信息
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class BankPaymentOrderBankAccountPaymentPayerInfoDtoParam implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'BankPaymentOrderBankAccountPaymentPayerInfoDtoParam';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'bankCode' => 'string',
|
||||
'payerMerchantNo' => 'string',
|
||||
'payerBankAccountNo' => 'string',
|
||||
'payerBankAccountName' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'bankCode' => null,
|
||||
'payerMerchantNo' => null,
|
||||
'payerBankAccountNo' => null,
|
||||
'payerBankAccountName' => 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 = [
|
||||
'bankCode' => 'bankCode',
|
||||
'payerMerchantNo' => 'payerMerchantNo',
|
||||
'payerBankAccountNo' => 'payerBankAccountNo',
|
||||
'payerBankAccountName' => 'payerBankAccountName'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'bankCode' => 'setBankCode',
|
||||
'payerMerchantNo' => 'setPayerMerchantNo',
|
||||
'payerBankAccountNo' => 'setPayerBankAccountNo',
|
||||
'payerBankAccountName' => 'setPayerBankAccountName'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'bankCode' => 'getBankCode',
|
||||
'payerMerchantNo' => 'getPayerMerchantNo',
|
||||
'payerBankAccountNo' => 'getPayerBankAccountNo',
|
||||
'payerBankAccountName' => 'getPayerBankAccountName'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['bankCode'] = isset($data['bankCode']) ? $data['bankCode'] : null;
|
||||
$this->container['payerMerchantNo'] = isset($data['payerMerchantNo']) ? $data['payerMerchantNo'] : null;
|
||||
$this->container['payerBankAccountNo'] = isset($data['payerBankAccountNo']) ? $data['payerBankAccountNo'] : null;
|
||||
$this->container['payerBankAccountName'] = isset($data['payerBankAccountName']) ? $data['payerBankAccountName'] : 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 bankCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBankCode()
|
||||
{
|
||||
return $this->container['bankCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankCode
|
||||
*
|
||||
* @param string $bankCode bankCode
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBankCode($bankCode)
|
||||
{
|
||||
$this->container['bankCode'] = $bankCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets payerMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayerMerchantNo()
|
||||
{
|
||||
return $this->container['payerMerchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payerMerchantNo
|
||||
*
|
||||
* @param string $payerMerchantNo payerMerchantNo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayerMerchantNo($payerMerchantNo)
|
||||
{
|
||||
$this->container['payerMerchantNo'] = $payerMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets payerBankAccountNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayerBankAccountNo()
|
||||
{
|
||||
return $this->container['payerBankAccountNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payerBankAccountNo
|
||||
*
|
||||
* @param string $payerBankAccountNo payerBankAccountNo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayerBankAccountNo($payerBankAccountNo)
|
||||
{
|
||||
$this->container['payerBankAccountNo'] = $payerBankAccountNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets payerBankAccountName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayerBankAccountName()
|
||||
{
|
||||
return $this->container['payerBankAccountName'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payerBankAccountName
|
||||
*
|
||||
* @param string $payerBankAccountName payerBankAccountName
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayerBankAccountName($payerBankAccountName)
|
||||
{
|
||||
$this->container['payerBankAccountName'] = $payerBankAccountName;
|
||||
|
||||
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,603 @@
|
||||
<?php
|
||||
/**
|
||||
* BankPaymentOrderBankAccountPaymentRequestDtoParam
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 账户
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* BankPaymentOrderBankAccountPaymentRequestDtoParam 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 BankPaymentOrderBankAccountPaymentRequestDtoParam implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'BankPaymentOrderBankAccountPaymentRequestDtoParam';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'businessMarket' => 'string',
|
||||
'yopMerchantNo' => 'string',
|
||||
'marketingProductCode' => 'string',
|
||||
'requestIp' => 'string',
|
||||
'appKey' => 'string',
|
||||
'parentMerchantNo' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'orderInfo' => '\Yeepay\Yop\Sdk\Service\Account\Model\BankPaymentOrderOrderInfoDtoParam',
|
||||
'payerInfo' => '\Yeepay\Yop\Sdk\Service\Account\Model\BankPaymentOrderBankAccountPaymentPayerInfoDtoParam',
|
||||
'batchNos' => 'string[]',
|
||||
'tradeScene' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'businessMarket' => null,
|
||||
'yopMerchantNo' => null,
|
||||
'marketingProductCode' => null,
|
||||
'requestIp' => null,
|
||||
'appKey' => null,
|
||||
'parentMerchantNo' => null,
|
||||
'merchantNo' => null,
|
||||
'orderInfo' => null,
|
||||
'payerInfo' => null,
|
||||
'batchNos' => null,
|
||||
'tradeScene' => 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 = [
|
||||
'businessMarket' => 'businessMarket',
|
||||
'yopMerchantNo' => 'yopMerchantNo',
|
||||
'marketingProductCode' => 'marketingProductCode',
|
||||
'requestIp' => 'requestIp',
|
||||
'appKey' => 'appKey',
|
||||
'parentMerchantNo' => 'parentMerchantNo',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'orderInfo' => 'orderInfo',
|
||||
'payerInfo' => 'payerInfo',
|
||||
'batchNos' => 'batchNos',
|
||||
'tradeScene' => 'tradeScene'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'businessMarket' => 'setBusinessMarket',
|
||||
'yopMerchantNo' => 'setYopMerchantNo',
|
||||
'marketingProductCode' => 'setMarketingProductCode',
|
||||
'requestIp' => 'setRequestIp',
|
||||
'appKey' => 'setAppKey',
|
||||
'parentMerchantNo' => 'setParentMerchantNo',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'orderInfo' => 'setOrderInfo',
|
||||
'payerInfo' => 'setPayerInfo',
|
||||
'batchNos' => 'setBatchNos',
|
||||
'tradeScene' => 'setTradeScene'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'businessMarket' => 'getBusinessMarket',
|
||||
'yopMerchantNo' => 'getYopMerchantNo',
|
||||
'marketingProductCode' => 'getMarketingProductCode',
|
||||
'requestIp' => 'getRequestIp',
|
||||
'appKey' => 'getAppKey',
|
||||
'parentMerchantNo' => 'getParentMerchantNo',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'orderInfo' => 'getOrderInfo',
|
||||
'payerInfo' => 'getPayerInfo',
|
||||
'batchNos' => 'getBatchNos',
|
||||
'tradeScene' => 'getTradeScene'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['businessMarket'] = isset($data['businessMarket']) ? $data['businessMarket'] : null;
|
||||
$this->container['yopMerchantNo'] = isset($data['yopMerchantNo']) ? $data['yopMerchantNo'] : null;
|
||||
$this->container['marketingProductCode'] = isset($data['marketingProductCode']) ? $data['marketingProductCode'] : null;
|
||||
$this->container['requestIp'] = isset($data['requestIp']) ? $data['requestIp'] : null;
|
||||
$this->container['appKey'] = isset($data['appKey']) ? $data['appKey'] : null;
|
||||
$this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['orderInfo'] = isset($data['orderInfo']) ? $data['orderInfo'] : null;
|
||||
$this->container['payerInfo'] = isset($data['payerInfo']) ? $data['payerInfo'] : null;
|
||||
$this->container['batchNos'] = isset($data['batchNos']) ? $data['batchNos'] : null;
|
||||
$this->container['tradeScene'] = isset($data['tradeScene']) ? $data['tradeScene'] : 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 businessMarket
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessMarket()
|
||||
{
|
||||
return $this->container['businessMarket'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets businessMarket
|
||||
*
|
||||
* @param string $businessMarket businessMarket
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBusinessMarket($businessMarket)
|
||||
{
|
||||
$this->container['businessMarket'] = $businessMarket;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets yopMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getYopMerchantNo()
|
||||
{
|
||||
return $this->container['yopMerchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets yopMerchantNo
|
||||
*
|
||||
* @param string $yopMerchantNo yopMerchantNo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setYopMerchantNo($yopMerchantNo)
|
||||
{
|
||||
$this->container['yopMerchantNo'] = $yopMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets marketingProductCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMarketingProductCode()
|
||||
{
|
||||
return $this->container['marketingProductCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets marketingProductCode
|
||||
*
|
||||
* @param string $marketingProductCode marketingProductCode
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMarketingProductCode($marketingProductCode)
|
||||
{
|
||||
$this->container['marketingProductCode'] = $marketingProductCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets requestIp
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestIp()
|
||||
{
|
||||
return $this->container['requestIp'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestIp
|
||||
*
|
||||
* @param string $requestIp requestIp
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRequestIp($requestIp)
|
||||
{
|
||||
$this->container['requestIp'] = $requestIp;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets appKey
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAppKey()
|
||||
{
|
||||
return $this->container['appKey'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appKey
|
||||
*
|
||||
* @param string $appKey appKey
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAppKey($appKey)
|
||||
{
|
||||
$this->container['appKey'] = $appKey;
|
||||
|
||||
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 orderInfo
|
||||
*
|
||||
* @return \Yeepay\Yop\Sdk\Service\Account\Model\BankPaymentOrderOrderInfoDtoParam
|
||||
*/
|
||||
public function getOrderInfo()
|
||||
{
|
||||
return $this->container['orderInfo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderInfo
|
||||
*
|
||||
* @param \Yeepay\Yop\Sdk\Service\Account\Model\BankPaymentOrderOrderInfoDtoParam $orderInfo orderInfo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderInfo($orderInfo)
|
||||
{
|
||||
$this->container['orderInfo'] = $orderInfo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets payerInfo
|
||||
*
|
||||
* @return \Yeepay\Yop\Sdk\Service\Account\Model\BankPaymentOrderBankAccountPaymentPayerInfoDtoParam
|
||||
*/
|
||||
public function getPayerInfo()
|
||||
{
|
||||
return $this->container['payerInfo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payerInfo
|
||||
*
|
||||
* @param \Yeepay\Yop\Sdk\Service\Account\Model\BankPaymentOrderBankAccountPaymentPayerInfoDtoParam $payerInfo payerInfo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayerInfo($payerInfo)
|
||||
{
|
||||
$this->container['payerInfo'] = $payerInfo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets batchNos
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public function getBatchNos()
|
||||
{
|
||||
return $this->container['batchNos'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets batchNos
|
||||
*
|
||||
* @param string[] $batchNos batchNos
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBatchNos($batchNos)
|
||||
{
|
||||
$this->container['batchNos'] = $batchNos;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets tradeScene
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTradeScene()
|
||||
{
|
||||
return $this->container['tradeScene'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets tradeScene
|
||||
*
|
||||
* @param string $tradeScene tradeScene
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setTradeScene($tradeScene)
|
||||
{
|
||||
$this->container['tradeScene'] = $tradeScene;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,452 @@
|
||||
<?php
|
||||
/**
|
||||
* BankPaymentOrderBankAccountPaymentRespDtoResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 账户
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* BankPaymentOrderBankAccountPaymentRespDtoResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class BankPaymentOrderBankAccountPaymentRespDtoResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'BankPaymentOrderBankAccountPaymentRespDtoResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'uniqueOrderNo' => 'string',
|
||||
'orderId' => 'string',
|
||||
'orderStatus' => 'string',
|
||||
'paymentUniqueOrderNo' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'uniqueOrderNo' => null,
|
||||
'orderId' => null,
|
||||
'orderStatus' => null,
|
||||
'paymentUniqueOrderNo' => 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',
|
||||
'uniqueOrderNo' => 'uniqueOrderNo',
|
||||
'orderId' => 'orderId',
|
||||
'orderStatus' => 'orderStatus',
|
||||
'paymentUniqueOrderNo' => 'paymentUniqueOrderNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'uniqueOrderNo' => 'setUniqueOrderNo',
|
||||
'orderId' => 'setOrderId',
|
||||
'orderStatus' => 'setOrderStatus',
|
||||
'paymentUniqueOrderNo' => 'setPaymentUniqueOrderNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'uniqueOrderNo' => 'getUniqueOrderNo',
|
||||
'orderId' => 'getOrderId',
|
||||
'orderStatus' => 'getOrderStatus',
|
||||
'paymentUniqueOrderNo' => 'getPaymentUniqueOrderNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['uniqueOrderNo'] = isset($data['uniqueOrderNo']) ? $data['uniqueOrderNo'] : null;
|
||||
$this->container['orderId'] = isset($data['orderId']) ? $data['orderId'] : null;
|
||||
$this->container['orderStatus'] = isset($data['orderStatus']) ? $data['orderStatus'] : null;
|
||||
$this->container['paymentUniqueOrderNo'] = isset($data['paymentUniqueOrderNo']) ? $data['paymentUniqueOrderNo'] : 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 uniqueOrderNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUniqueOrderNo()
|
||||
{
|
||||
return $this->container['uniqueOrderNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets uniqueOrderNo
|
||||
*
|
||||
* @param string $uniqueOrderNo 易宝唯一订单号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUniqueOrderNo($uniqueOrderNo)
|
||||
{
|
||||
$this->container['uniqueOrderNo'] = $uniqueOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->container['orderId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderId
|
||||
*
|
||||
* @param string $orderId 商户订单号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->container['orderId'] = $orderId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderStatus
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderStatus()
|
||||
{
|
||||
return $this->container['orderStatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderStatus
|
||||
*
|
||||
* @param string $orderStatus 订单状态
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderStatus($orderStatus)
|
||||
{
|
||||
$this->container['orderStatus'] = $orderStatus;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets paymentUniqueOrderNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPaymentUniqueOrderNo()
|
||||
{
|
||||
return $this->container['paymentUniqueOrderNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets paymentUniqueOrderNo
|
||||
*
|
||||
* @param string $paymentUniqueOrderNo 支付订单号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPaymentUniqueOrderNo($paymentUniqueOrderNo)
|
||||
{
|
||||
$this->container['paymentUniqueOrderNo'] = $paymentUniqueOrderNo;
|
||||
|
||||
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/Account/Model/BankPaymentOrderOrderInfoDtoParam.php
Normal file
543
lib/Service/Account/Model/BankPaymentOrderOrderInfoDtoParam.php
Normal file
@@ -0,0 +1,543 @@
|
||||
<?php
|
||||
/**
|
||||
* BankPaymentOrderOrderInfoDtoParam
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 账户
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* BankPaymentOrderOrderInfoDtoParam Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description 收单订单信息
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class BankPaymentOrderOrderInfoDtoParam implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'BankPaymentOrderOrderInfoDtoParam';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'orderId' => 'string',
|
||||
'orderAmount' => 'float',
|
||||
'fundProcessType' => 'string',
|
||||
'goodsName' => 'string',
|
||||
'expiredTime' => 'string',
|
||||
'notifyUrl' => 'string',
|
||||
'memo' => 'string',
|
||||
'businessInfo' => 'string',
|
||||
'csNotifyUrl' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'orderId' => null,
|
||||
'orderAmount' => null,
|
||||
'fundProcessType' => null,
|
||||
'goodsName' => null,
|
||||
'expiredTime' => null,
|
||||
'notifyUrl' => null,
|
||||
'memo' => null,
|
||||
'businessInfo' => null,
|
||||
'csNotifyUrl' => 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 = [
|
||||
'orderId' => 'orderId',
|
||||
'orderAmount' => 'orderAmount',
|
||||
'fundProcessType' => 'fundProcessType',
|
||||
'goodsName' => 'goodsName',
|
||||
'expiredTime' => 'expiredTime',
|
||||
'notifyUrl' => 'notifyUrl',
|
||||
'memo' => 'memo',
|
||||
'businessInfo' => 'businessInfo',
|
||||
'csNotifyUrl' => 'csNotifyUrl'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'orderId' => 'setOrderId',
|
||||
'orderAmount' => 'setOrderAmount',
|
||||
'fundProcessType' => 'setFundProcessType',
|
||||
'goodsName' => 'setGoodsName',
|
||||
'expiredTime' => 'setExpiredTime',
|
||||
'notifyUrl' => 'setNotifyUrl',
|
||||
'memo' => 'setMemo',
|
||||
'businessInfo' => 'setBusinessInfo',
|
||||
'csNotifyUrl' => 'setCsNotifyUrl'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'orderId' => 'getOrderId',
|
||||
'orderAmount' => 'getOrderAmount',
|
||||
'fundProcessType' => 'getFundProcessType',
|
||||
'goodsName' => 'getGoodsName',
|
||||
'expiredTime' => 'getExpiredTime',
|
||||
'notifyUrl' => 'getNotifyUrl',
|
||||
'memo' => 'getMemo',
|
||||
'businessInfo' => 'getBusinessInfo',
|
||||
'csNotifyUrl' => 'getCsNotifyUrl'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['orderId'] = isset($data['orderId']) ? $data['orderId'] : null;
|
||||
$this->container['orderAmount'] = isset($data['orderAmount']) ? $data['orderAmount'] : null;
|
||||
$this->container['fundProcessType'] = isset($data['fundProcessType']) ? $data['fundProcessType'] : null;
|
||||
$this->container['goodsName'] = isset($data['goodsName']) ? $data['goodsName'] : null;
|
||||
$this->container['expiredTime'] = isset($data['expiredTime']) ? $data['expiredTime'] : null;
|
||||
$this->container['notifyUrl'] = isset($data['notifyUrl']) ? $data['notifyUrl'] : null;
|
||||
$this->container['memo'] = isset($data['memo']) ? $data['memo'] : null;
|
||||
$this->container['businessInfo'] = isset($data['businessInfo']) ? $data['businessInfo'] : null;
|
||||
$this->container['csNotifyUrl'] = isset($data['csNotifyUrl']) ? $data['csNotifyUrl'] : 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 orderId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->container['orderId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderId
|
||||
*
|
||||
* @param string $orderId orderId
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->container['orderId'] = $orderId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getOrderAmount()
|
||||
{
|
||||
return $this->container['orderAmount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderAmount
|
||||
*
|
||||
* @param float $orderAmount orderAmount
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderAmount($orderAmount)
|
||||
{
|
||||
$this->container['orderAmount'] = $orderAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets fundProcessType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFundProcessType()
|
||||
{
|
||||
return $this->container['fundProcessType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets fundProcessType
|
||||
*
|
||||
* @param string $fundProcessType fundProcessType
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setFundProcessType($fundProcessType)
|
||||
{
|
||||
$this->container['fundProcessType'] = $fundProcessType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets goodsName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getGoodsName()
|
||||
{
|
||||
return $this->container['goodsName'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets goodsName
|
||||
*
|
||||
* @param string $goodsName goodsName
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setGoodsName($goodsName)
|
||||
{
|
||||
$this->container['goodsName'] = $goodsName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets expiredTime
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getExpiredTime()
|
||||
{
|
||||
return $this->container['expiredTime'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets expiredTime
|
||||
*
|
||||
* @param string $expiredTime expiredTime
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setExpiredTime($expiredTime)
|
||||
{
|
||||
$this->container['expiredTime'] = $expiredTime;
|
||||
|
||||
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 memo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMemo()
|
||||
{
|
||||
return $this->container['memo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets memo
|
||||
*
|
||||
* @param string $memo memo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMemo($memo)
|
||||
{
|
||||
$this->container['memo'] = $memo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets businessInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessInfo()
|
||||
{
|
||||
return $this->container['businessInfo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets businessInfo
|
||||
*
|
||||
* @param string $businessInfo businessInfo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBusinessInfo($businessInfo)
|
||||
{
|
||||
$this->container['businessInfo'] = $businessInfo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets csNotifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCsNotifyUrl()
|
||||
{
|
||||
return $this->container['csNotifyUrl'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets csNotifyUrl
|
||||
*
|
||||
* @param string $csNotifyUrl csNotifyUrl
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCsNotifyUrl($csNotifyUrl)
|
||||
{
|
||||
$this->container['csNotifyUrl'] = $csNotifyUrl;
|
||||
|
||||
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/Account/Model/BankPaymentOrderRequest.php
Normal file
42
lib/Service/Account/Model/BankPaymentOrderRequest.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class BankPaymentOrderRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var
|
||||
*/
|
||||
private $body;
|
||||
|
||||
/**
|
||||
* Gets body
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public function getBody()
|
||||
{
|
||||
return $this->body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets body
|
||||
*
|
||||
* @param $body
|
||||
* @return BankPaymentOrderRequest
|
||||
*/
|
||||
public function setBody($body)
|
||||
{
|
||||
$this->body = $body;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'bankPaymentOrder';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\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 BankPaymentOrderRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var BankPaymentOrderRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BankPaymentOrderRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BankPaymentOrderRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Account';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/account/bank/payment/order';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/json';
|
||||
|
||||
|
||||
/**
|
||||
* @param BankPaymentOrderRequest $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;
|
||||
}
|
||||
}
|
||||
BankPaymentOrderRequestMarshaller::__init();
|
||||
34
lib/Service/Account/Model/BankPaymentOrderResponse.php
Normal file
34
lib/Service/Account/Model/BankPaymentOrderResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class BankPaymentOrderResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var BankPaymentOrderBankAccountPaymentRespDtoResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Account\Model\BankPaymentOrderBankAccountPaymentRespDtoResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param BankPaymentOrderBankAccountPaymentRespDtoResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BankPaymentOrderBankAccountPaymentRespDtoResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class BankPaymentOrderResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BankPaymentOrderResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BankPaymentOrderResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BankPaymentOrderResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BankPaymentOrderResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new BankPaymentOrderResponse();
|
||||
}
|
||||
}
|
||||
|
||||
BankPaymentOrderResponseUnMarshaller::__init();
|
||||
603
lib/Service/Account/Model/BenefitInfoReqDTO.php
Normal file
603
lib/Service/Account/Model/BenefitInfoReqDTO.php
Normal file
@@ -0,0 +1,603 @@
|
||||
<?php
|
||||
/**
|
||||
* BenefitInfoReqDTO
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 账户
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* BenefitInfoReqDTO Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description 未命名
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class BenefitInfoReqDTO implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'BenefitInfoReqDTO';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'benefitName' => 'string',
|
||||
'benefitMobileNo' => 'string',
|
||||
'benefitIdType' => 'string',
|
||||
'benefitIdNo' => 'string',
|
||||
'benefitStartDate' => 'string',
|
||||
'benefitExpireDate' => 'string',
|
||||
'benefitIncomeType' => 'string',
|
||||
'benefitImageFont' => 'string',
|
||||
'benefitImageBack' => 'string',
|
||||
'benefitAddress' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'benefitName' => null,
|
||||
'benefitMobileNo' => null,
|
||||
'benefitIdType' => null,
|
||||
'benefitIdNo' => null,
|
||||
'benefitStartDate' => null,
|
||||
'benefitExpireDate' => null,
|
||||
'benefitIncomeType' => null,
|
||||
'benefitImageFont' => null,
|
||||
'benefitImageBack' => null,
|
||||
'benefitAddress' => 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 = [
|
||||
'benefitName' => 'benefitName',
|
||||
'benefitMobileNo' => 'benefitMobileNo',
|
||||
'benefitIdType' => 'benefitIdType',
|
||||
'benefitIdNo' => 'benefitIdNo',
|
||||
'benefitStartDate' => 'benefitStartDate',
|
||||
'benefitExpireDate' => 'benefitExpireDate',
|
||||
'benefitIncomeType' => 'benefitIncomeType',
|
||||
'benefitImageFont' => 'benefitImageFont',
|
||||
'benefitImageBack' => 'benefitImageBack',
|
||||
'benefitAddress' => 'benefitAddress'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'benefitName' => 'setBenefitName',
|
||||
'benefitMobileNo' => 'setBenefitMobileNo',
|
||||
'benefitIdType' => 'setBenefitIdType',
|
||||
'benefitIdNo' => 'setBenefitIdNo',
|
||||
'benefitStartDate' => 'setBenefitStartDate',
|
||||
'benefitExpireDate' => 'setBenefitExpireDate',
|
||||
'benefitIncomeType' => 'setBenefitIncomeType',
|
||||
'benefitImageFont' => 'setBenefitImageFont',
|
||||
'benefitImageBack' => 'setBenefitImageBack',
|
||||
'benefitAddress' => 'setBenefitAddress'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'benefitName' => 'getBenefitName',
|
||||
'benefitMobileNo' => 'getBenefitMobileNo',
|
||||
'benefitIdType' => 'getBenefitIdType',
|
||||
'benefitIdNo' => 'getBenefitIdNo',
|
||||
'benefitStartDate' => 'getBenefitStartDate',
|
||||
'benefitExpireDate' => 'getBenefitExpireDate',
|
||||
'benefitIncomeType' => 'getBenefitIncomeType',
|
||||
'benefitImageFont' => 'getBenefitImageFont',
|
||||
'benefitImageBack' => 'getBenefitImageBack',
|
||||
'benefitAddress' => 'getBenefitAddress'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['benefitName'] = isset($data['benefitName']) ? $data['benefitName'] : null;
|
||||
$this->container['benefitMobileNo'] = isset($data['benefitMobileNo']) ? $data['benefitMobileNo'] : null;
|
||||
$this->container['benefitIdType'] = isset($data['benefitIdType']) ? $data['benefitIdType'] : null;
|
||||
$this->container['benefitIdNo'] = isset($data['benefitIdNo']) ? $data['benefitIdNo'] : null;
|
||||
$this->container['benefitStartDate'] = isset($data['benefitStartDate']) ? $data['benefitStartDate'] : null;
|
||||
$this->container['benefitExpireDate'] = isset($data['benefitExpireDate']) ? $data['benefitExpireDate'] : null;
|
||||
$this->container['benefitIncomeType'] = isset($data['benefitIncomeType']) ? $data['benefitIncomeType'] : null;
|
||||
$this->container['benefitImageFont'] = isset($data['benefitImageFont']) ? $data['benefitImageFont'] : null;
|
||||
$this->container['benefitImageBack'] = isset($data['benefitImageBack']) ? $data['benefitImageBack'] : null;
|
||||
$this->container['benefitAddress'] = isset($data['benefitAddress']) ? $data['benefitAddress'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
if ($this->container['benefitName'] === null) {
|
||||
$invalidProperties[] = "'benefitName' can't be null";
|
||||
}
|
||||
if ($this->container['benefitMobileNo'] === null) {
|
||||
$invalidProperties[] = "'benefitMobileNo' can't be null";
|
||||
}
|
||||
if ($this->container['benefitIdType'] === null) {
|
||||
$invalidProperties[] = "'benefitIdType' can't be null";
|
||||
}
|
||||
if ($this->container['benefitIdNo'] === null) {
|
||||
$invalidProperties[] = "'benefitIdNo' can't be null";
|
||||
}
|
||||
if ($this->container['benefitStartDate'] === null) {
|
||||
$invalidProperties[] = "'benefitStartDate' can't be null";
|
||||
}
|
||||
if ($this->container['benefitExpireDate'] === null) {
|
||||
$invalidProperties[] = "'benefitExpireDate' can't be null";
|
||||
}
|
||||
if ($this->container['benefitIncomeType'] === null) {
|
||||
$invalidProperties[] = "'benefitIncomeType' can't be null";
|
||||
}
|
||||
if ($this->container['benefitImageFont'] === null) {
|
||||
$invalidProperties[] = "'benefitImageFont' can't be null";
|
||||
}
|
||||
if ($this->container['benefitImageBack'] === null) {
|
||||
$invalidProperties[] = "'benefitImageBack' can't be null";
|
||||
}
|
||||
if ($this->container['benefitAddress'] === null) {
|
||||
$invalidProperties[] = "'benefitAddress' 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 benefitName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBenefitName()
|
||||
{
|
||||
return $this->container['benefitName'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets benefitName
|
||||
*
|
||||
* @param string $benefitName 受益人姓名
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBenefitName($benefitName)
|
||||
{
|
||||
$this->container['benefitName'] = $benefitName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets benefitMobileNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBenefitMobileNo()
|
||||
{
|
||||
return $this->container['benefitMobileNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets benefitMobileNo
|
||||
*
|
||||
* @param string $benefitMobileNo 受益人手机号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBenefitMobileNo($benefitMobileNo)
|
||||
{
|
||||
$this->container['benefitMobileNo'] = $benefitMobileNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets benefitIdType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBenefitIdType()
|
||||
{
|
||||
return $this->container['benefitIdType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets benefitIdType
|
||||
*
|
||||
* @param string $benefitIdType 受益人证件类型<br>可选项如下:<br>ID_CARD:身份证
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBenefitIdType($benefitIdType)
|
||||
{
|
||||
$this->container['benefitIdType'] = $benefitIdType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets benefitIdNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBenefitIdNo()
|
||||
{
|
||||
return $this->container['benefitIdNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets benefitIdNo
|
||||
*
|
||||
* @param string $benefitIdNo 受益人证件号码<br>填写身份证号码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBenefitIdNo($benefitIdNo)
|
||||
{
|
||||
$this->container['benefitIdNo'] = $benefitIdNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets benefitStartDate
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBenefitStartDate()
|
||||
{
|
||||
return $this->container['benefitStartDate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets benefitStartDate
|
||||
*
|
||||
* @param string $benefitStartDate 受益人证件生效日期<br>参数格式为yyyyMMdd
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBenefitStartDate($benefitStartDate)
|
||||
{
|
||||
$this->container['benefitStartDate'] = $benefitStartDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets benefitExpireDate
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBenefitExpireDate()
|
||||
{
|
||||
return $this->container['benefitExpireDate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets benefitExpireDate
|
||||
*
|
||||
* @param string $benefitExpireDate 受益人证件失效日期<br>参数格式为yyyyMMdd或者forever
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBenefitExpireDate($benefitExpireDate)
|
||||
{
|
||||
$this->container['benefitExpireDate'] = $benefitExpireDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets benefitIncomeType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBenefitIncomeType()
|
||||
{
|
||||
return $this->container['benefitIncomeType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets benefitIncomeType
|
||||
*
|
||||
* @param string $benefitIncomeType 最终受益人受益方式<br>可选项如下:<br>A01:直接或间接控股25%(含)以上<br>A02:通过人事、财务等其他方式对公司进行控制<br>A03:高级管理人员<br>A04:法人或公司负责人<br>A05:其他
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBenefitIncomeType($benefitIncomeType)
|
||||
{
|
||||
$this->container['benefitIncomeType'] = $benefitIncomeType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets benefitImageFont
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBenefitImageFont()
|
||||
{
|
||||
return $this->container['benefitImageFont'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets benefitImageFont
|
||||
*
|
||||
* @param string $benefitImageFont 受益人证件照正面
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBenefitImageFont($benefitImageFont)
|
||||
{
|
||||
$this->container['benefitImageFont'] = $benefitImageFont;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets benefitImageBack
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBenefitImageBack()
|
||||
{
|
||||
return $this->container['benefitImageBack'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets benefitImageBack
|
||||
*
|
||||
* @param string $benefitImageBack 受益人证件照反面
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBenefitImageBack($benefitImageBack)
|
||||
{
|
||||
$this->container['benefitImageBack'] = $benefitImageBack;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets benefitAddress
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBenefitAddress()
|
||||
{
|
||||
return $this->container['benefitAddress'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets benefitAddress
|
||||
*
|
||||
* @param string $benefitAddress 受益人地址
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBenefitAddress($benefitAddress)
|
||||
{
|
||||
$this->container['benefitAddress'] = $benefitAddress;
|
||||
|
||||
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,543 @@
|
||||
<?php
|
||||
/**
|
||||
* EnterpriseAccountBookPayOrderAccountBookPaymentRequestDtoParam
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 账户
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* EnterpriseAccountBookPayOrderAccountBookPaymentRequestDtoParam 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 EnterpriseAccountBookPayOrderAccountBookPaymentRequestDtoParam implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'EnterpriseAccountBookPayOrderAccountBookPaymentRequestDtoParam';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'businessMarket' => 'string',
|
||||
'appKey' => 'string',
|
||||
'yopMerchantNo' => 'string',
|
||||
'parentMerchantNo' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'ypAccountBookNo' => 'string',
|
||||
'marketingProductCode' => 'string',
|
||||
'orderInfo' => '\Yeepay\Yop\Sdk\Service\Account\Model\EnterpriseAccountBookPayOrderOrderInfoDtoParam',
|
||||
'merchantRequestIp' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'businessMarket' => null,
|
||||
'appKey' => null,
|
||||
'yopMerchantNo' => null,
|
||||
'parentMerchantNo' => null,
|
||||
'merchantNo' => null,
|
||||
'ypAccountBookNo' => null,
|
||||
'marketingProductCode' => null,
|
||||
'orderInfo' => null,
|
||||
'merchantRequestIp' => 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 = [
|
||||
'businessMarket' => 'businessMarket',
|
||||
'appKey' => 'appKey',
|
||||
'yopMerchantNo' => 'yopMerchantNo',
|
||||
'parentMerchantNo' => 'parentMerchantNo',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'ypAccountBookNo' => 'ypAccountBookNo',
|
||||
'marketingProductCode' => 'marketingProductCode',
|
||||
'orderInfo' => 'orderInfo',
|
||||
'merchantRequestIp' => 'merchantRequestIp'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'businessMarket' => 'setBusinessMarket',
|
||||
'appKey' => 'setAppKey',
|
||||
'yopMerchantNo' => 'setYopMerchantNo',
|
||||
'parentMerchantNo' => 'setParentMerchantNo',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'ypAccountBookNo' => 'setYpAccountBookNo',
|
||||
'marketingProductCode' => 'setMarketingProductCode',
|
||||
'orderInfo' => 'setOrderInfo',
|
||||
'merchantRequestIp' => 'setMerchantRequestIp'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'businessMarket' => 'getBusinessMarket',
|
||||
'appKey' => 'getAppKey',
|
||||
'yopMerchantNo' => 'getYopMerchantNo',
|
||||
'parentMerchantNo' => 'getParentMerchantNo',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'ypAccountBookNo' => 'getYpAccountBookNo',
|
||||
'marketingProductCode' => 'getMarketingProductCode',
|
||||
'orderInfo' => 'getOrderInfo',
|
||||
'merchantRequestIp' => 'getMerchantRequestIp'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['businessMarket'] = isset($data['businessMarket']) ? $data['businessMarket'] : null;
|
||||
$this->container['appKey'] = isset($data['appKey']) ? $data['appKey'] : null;
|
||||
$this->container['yopMerchantNo'] = isset($data['yopMerchantNo']) ? $data['yopMerchantNo'] : null;
|
||||
$this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['ypAccountBookNo'] = isset($data['ypAccountBookNo']) ? $data['ypAccountBookNo'] : null;
|
||||
$this->container['marketingProductCode'] = isset($data['marketingProductCode']) ? $data['marketingProductCode'] : null;
|
||||
$this->container['orderInfo'] = isset($data['orderInfo']) ? $data['orderInfo'] : null;
|
||||
$this->container['merchantRequestIp'] = isset($data['merchantRequestIp']) ? $data['merchantRequestIp'] : 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 businessMarket
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessMarket()
|
||||
{
|
||||
return $this->container['businessMarket'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets businessMarket
|
||||
*
|
||||
* @param string $businessMarket businessMarket
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBusinessMarket($businessMarket)
|
||||
{
|
||||
$this->container['businessMarket'] = $businessMarket;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets appKey
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAppKey()
|
||||
{
|
||||
return $this->container['appKey'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appKey
|
||||
*
|
||||
* @param string $appKey appKey
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAppKey($appKey)
|
||||
{
|
||||
$this->container['appKey'] = $appKey;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets yopMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getYopMerchantNo()
|
||||
{
|
||||
return $this->container['yopMerchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets yopMerchantNo
|
||||
*
|
||||
* @param string $yopMerchantNo yopMerchantNo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setYopMerchantNo($yopMerchantNo)
|
||||
{
|
||||
$this->container['yopMerchantNo'] = $yopMerchantNo;
|
||||
|
||||
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 ypAccountBookNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getYpAccountBookNo()
|
||||
{
|
||||
return $this->container['ypAccountBookNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets ypAccountBookNo
|
||||
*
|
||||
* @param string $ypAccountBookNo ypAccountBookNo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setYpAccountBookNo($ypAccountBookNo)
|
||||
{
|
||||
$this->container['ypAccountBookNo'] = $ypAccountBookNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets marketingProductCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMarketingProductCode()
|
||||
{
|
||||
return $this->container['marketingProductCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets marketingProductCode
|
||||
*
|
||||
* @param string $marketingProductCode marketingProductCode
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMarketingProductCode($marketingProductCode)
|
||||
{
|
||||
$this->container['marketingProductCode'] = $marketingProductCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderInfo
|
||||
*
|
||||
* @return \Yeepay\Yop\Sdk\Service\Account\Model\EnterpriseAccountBookPayOrderOrderInfoDtoParam
|
||||
*/
|
||||
public function getOrderInfo()
|
||||
{
|
||||
return $this->container['orderInfo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderInfo
|
||||
*
|
||||
* @param \Yeepay\Yop\Sdk\Service\Account\Model\EnterpriseAccountBookPayOrderOrderInfoDtoParam $orderInfo orderInfo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderInfo($orderInfo)
|
||||
{
|
||||
$this->container['orderInfo'] = $orderInfo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantRequestIp
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantRequestIp()
|
||||
{
|
||||
return $this->container['merchantRequestIp'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantRequestIp
|
||||
*
|
||||
* @param string $merchantRequestIp merchantRequestIp
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantRequestIp($merchantRequestIp)
|
||||
{
|
||||
$this->container['merchantRequestIp'] = $merchantRequestIp;
|
||||
|
||||
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
|
||||
/**
|
||||
* EnterpriseAccountBookPayOrderAccountBookPaymentRespDtoResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 账户
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* EnterpriseAccountBookPayOrderAccountBookPaymentRespDtoResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class EnterpriseAccountBookPayOrderAccountBookPaymentRespDtoResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'EnterpriseAccountBookPayOrderAccountBookPaymentRespDtoResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'uniqueOrderNo' => 'string',
|
||||
'orderId' => 'string',
|
||||
'orderStatus' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'uniqueOrderNo' => null,
|
||||
'orderId' => null,
|
||||
'orderStatus' => 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',
|
||||
'uniqueOrderNo' => 'uniqueOrderNo',
|
||||
'orderId' => 'orderId',
|
||||
'orderStatus' => 'orderStatus'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'uniqueOrderNo' => 'setUniqueOrderNo',
|
||||
'orderId' => 'setOrderId',
|
||||
'orderStatus' => 'setOrderStatus'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'uniqueOrderNo' => 'getUniqueOrderNo',
|
||||
'orderId' => 'getOrderId',
|
||||
'orderStatus' => 'getOrderStatus'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['uniqueOrderNo'] = isset($data['uniqueOrderNo']) ? $data['uniqueOrderNo'] : null;
|
||||
$this->container['orderId'] = isset($data['orderId']) ? $data['orderId'] : null;
|
||||
$this->container['orderStatus'] = isset($data['orderStatus']) ? $data['orderStatus'] : 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 uniqueOrderNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUniqueOrderNo()
|
||||
{
|
||||
return $this->container['uniqueOrderNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets uniqueOrderNo
|
||||
*
|
||||
* @param string $uniqueOrderNo 易宝唯一订单号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUniqueOrderNo($uniqueOrderNo)
|
||||
{
|
||||
$this->container['uniqueOrderNo'] = $uniqueOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->container['orderId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderId
|
||||
*
|
||||
* @param string $orderId 商户请求号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->container['orderId'] = $orderId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderStatus
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderStatus()
|
||||
{
|
||||
return $this->container['orderStatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderStatus
|
||||
*
|
||||
* @param string $orderStatus 订单状态
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderStatus($orderStatus)
|
||||
{
|
||||
$this->container['orderStatus'] = $orderStatus;
|
||||
|
||||
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,543 @@
|
||||
<?php
|
||||
/**
|
||||
* EnterpriseAccountBookPayOrderOrderInfoDtoParam
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 账户
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* EnterpriseAccountBookPayOrderOrderInfoDtoParam Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description 订单信息
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class EnterpriseAccountBookPayOrderOrderInfoDtoParam implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'EnterpriseAccountBookPayOrderOrderInfoDtoParam';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'orderId' => 'string',
|
||||
'orderAmount' => 'float',
|
||||
'fundProcessType' => 'string',
|
||||
'goodsName' => 'string',
|
||||
'expiredTime' => 'string',
|
||||
'notifyUrl' => 'string',
|
||||
'memo' => 'string',
|
||||
'csUrl' => 'string',
|
||||
'businessInfo' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'orderId' => null,
|
||||
'orderAmount' => null,
|
||||
'fundProcessType' => null,
|
||||
'goodsName' => null,
|
||||
'expiredTime' => null,
|
||||
'notifyUrl' => null,
|
||||
'memo' => null,
|
||||
'csUrl' => null,
|
||||
'businessInfo' => 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 = [
|
||||
'orderId' => 'orderId',
|
||||
'orderAmount' => 'orderAmount',
|
||||
'fundProcessType' => 'fundProcessType',
|
||||
'goodsName' => 'goodsName',
|
||||
'expiredTime' => 'expiredTime',
|
||||
'notifyUrl' => 'notifyUrl',
|
||||
'memo' => 'memo',
|
||||
'csUrl' => 'csUrl',
|
||||
'businessInfo' => 'businessInfo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'orderId' => 'setOrderId',
|
||||
'orderAmount' => 'setOrderAmount',
|
||||
'fundProcessType' => 'setFundProcessType',
|
||||
'goodsName' => 'setGoodsName',
|
||||
'expiredTime' => 'setExpiredTime',
|
||||
'notifyUrl' => 'setNotifyUrl',
|
||||
'memo' => 'setMemo',
|
||||
'csUrl' => 'setCsUrl',
|
||||
'businessInfo' => 'setBusinessInfo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'orderId' => 'getOrderId',
|
||||
'orderAmount' => 'getOrderAmount',
|
||||
'fundProcessType' => 'getFundProcessType',
|
||||
'goodsName' => 'getGoodsName',
|
||||
'expiredTime' => 'getExpiredTime',
|
||||
'notifyUrl' => 'getNotifyUrl',
|
||||
'memo' => 'getMemo',
|
||||
'csUrl' => 'getCsUrl',
|
||||
'businessInfo' => 'getBusinessInfo'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['orderId'] = isset($data['orderId']) ? $data['orderId'] : null;
|
||||
$this->container['orderAmount'] = isset($data['orderAmount']) ? $data['orderAmount'] : null;
|
||||
$this->container['fundProcessType'] = isset($data['fundProcessType']) ? $data['fundProcessType'] : null;
|
||||
$this->container['goodsName'] = isset($data['goodsName']) ? $data['goodsName'] : null;
|
||||
$this->container['expiredTime'] = isset($data['expiredTime']) ? $data['expiredTime'] : null;
|
||||
$this->container['notifyUrl'] = isset($data['notifyUrl']) ? $data['notifyUrl'] : null;
|
||||
$this->container['memo'] = isset($data['memo']) ? $data['memo'] : null;
|
||||
$this->container['csUrl'] = isset($data['csUrl']) ? $data['csUrl'] : null;
|
||||
$this->container['businessInfo'] = isset($data['businessInfo']) ? $data['businessInfo'] : 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 orderId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->container['orderId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderId
|
||||
*
|
||||
* @param string $orderId orderId
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->container['orderId'] = $orderId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getOrderAmount()
|
||||
{
|
||||
return $this->container['orderAmount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderAmount
|
||||
*
|
||||
* @param float $orderAmount orderAmount
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderAmount($orderAmount)
|
||||
{
|
||||
$this->container['orderAmount'] = $orderAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets fundProcessType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFundProcessType()
|
||||
{
|
||||
return $this->container['fundProcessType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets fundProcessType
|
||||
*
|
||||
* @param string $fundProcessType fundProcessType
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setFundProcessType($fundProcessType)
|
||||
{
|
||||
$this->container['fundProcessType'] = $fundProcessType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets goodsName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getGoodsName()
|
||||
{
|
||||
return $this->container['goodsName'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets goodsName
|
||||
*
|
||||
* @param string $goodsName goodsName
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setGoodsName($goodsName)
|
||||
{
|
||||
$this->container['goodsName'] = $goodsName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets expiredTime
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getExpiredTime()
|
||||
{
|
||||
return $this->container['expiredTime'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets expiredTime
|
||||
*
|
||||
* @param string $expiredTime expiredTime
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setExpiredTime($expiredTime)
|
||||
{
|
||||
$this->container['expiredTime'] = $expiredTime;
|
||||
|
||||
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 memo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMemo()
|
||||
{
|
||||
return $this->container['memo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets memo
|
||||
*
|
||||
* @param string $memo memo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMemo($memo)
|
||||
{
|
||||
$this->container['memo'] = $memo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets csUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCsUrl()
|
||||
{
|
||||
return $this->container['csUrl'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets csUrl
|
||||
*
|
||||
* @param string $csUrl csUrl
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCsUrl($csUrl)
|
||||
{
|
||||
$this->container['csUrl'] = $csUrl;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets businessInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessInfo()
|
||||
{
|
||||
return $this->container['businessInfo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets businessInfo
|
||||
*
|
||||
* @param string $businessInfo businessInfo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBusinessInfo($businessInfo)
|
||||
{
|
||||
$this->container['businessInfo'] = $businessInfo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class EnterpriseAccountBookPayOrderRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var
|
||||
*/
|
||||
private $body;
|
||||
|
||||
/**
|
||||
* Gets body
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public function getBody()
|
||||
{
|
||||
return $this->body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets body
|
||||
*
|
||||
* @param $body
|
||||
* @return EnterpriseAccountBookPayOrderRequest
|
||||
*/
|
||||
public function setBody($body)
|
||||
{
|
||||
$this->body = $body;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'enterpriseAccountBookPayOrder';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\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 EnterpriseAccountBookPayOrderRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var EnterpriseAccountBookPayOrderRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new EnterpriseAccountBookPayOrderRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return EnterpriseAccountBookPayOrderRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Account';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/account/enterprise/account-book-pay/order';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/json';
|
||||
|
||||
|
||||
/**
|
||||
* @param EnterpriseAccountBookPayOrderRequest $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;
|
||||
}
|
||||
}
|
||||
EnterpriseAccountBookPayOrderRequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class EnterpriseAccountBookPayOrderResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var EnterpriseAccountBookPayOrderAccountBookPaymentRespDtoResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Account\Model\EnterpriseAccountBookPayOrderAccountBookPaymentRespDtoResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param EnterpriseAccountBookPayOrderAccountBookPaymentRespDtoResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return EnterpriseAccountBookPayOrderAccountBookPaymentRespDtoResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class EnterpriseAccountBookPayOrderResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var EnterpriseAccountBookPayOrderResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new EnterpriseAccountBookPayOrderResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return EnterpriseAccountBookPayOrderResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return EnterpriseAccountBookPayOrderResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new EnterpriseAccountBookPayOrderResponse();
|
||||
}
|
||||
}
|
||||
|
||||
EnterpriseAccountBookPayOrderResponseUnMarshaller::__init();
|
||||
92
lib/Service/Account/Model/EnterpriseTokenPayOrderRequest.php
Normal file
92
lib/Service/Account/Model/EnterpriseTokenPayOrderRequest.php
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class EnterpriseTokenPayOrderRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $token;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $payerMerchantNo;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return EnterpriseTokenPayOrderRequest
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets token
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return $this->token;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token
|
||||
*
|
||||
* @param string $token
|
||||
* @return EnterpriseTokenPayOrderRequest
|
||||
*/
|
||||
public function setToken($token)
|
||||
{
|
||||
$this->token = $token;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets payerMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayerMerchantNo()
|
||||
{
|
||||
return $this->payerMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payerMerchantNo
|
||||
*
|
||||
* @param string $payerMerchantNo
|
||||
* @return EnterpriseTokenPayOrderRequest
|
||||
*/
|
||||
public function setPayerMerchantNo($payerMerchantNo)
|
||||
{
|
||||
$this->payerMerchantNo = $payerMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'enterpriseTokenPayOrder';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\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 EnterpriseTokenPayOrderRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var EnterpriseTokenPayOrderRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new EnterpriseTokenPayOrderRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return EnterpriseTokenPayOrderRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Account';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/account/enterprise/token-pay/order';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param EnterpriseTokenPayOrderRequest $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->getToken() != null){
|
||||
$internalRequest->addParameter('token', ObjectSerializer::sanitizeForSerialization($request->getToken(), 'string'));
|
||||
}
|
||||
if($request->getPayerMerchantNo() != null){
|
||||
$internalRequest->addParameter('payerMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getPayerMerchantNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
EnterpriseTokenPayOrderRequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class EnterpriseTokenPayOrderResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var EnterpriseTokenPayOrderTokenPaymentResponseDtoResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Account\Model\EnterpriseTokenPayOrderTokenPaymentResponseDtoResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param EnterpriseTokenPayOrderTokenPaymentResponseDtoResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return EnterpriseTokenPayOrderTokenPaymentResponseDtoResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class EnterpriseTokenPayOrderResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var EnterpriseTokenPayOrderResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new EnterpriseTokenPayOrderResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return EnterpriseTokenPayOrderResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return EnterpriseTokenPayOrderResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new EnterpriseTokenPayOrderResponse();
|
||||
}
|
||||
}
|
||||
|
||||
EnterpriseTokenPayOrderResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,392 @@
|
||||
<?php
|
||||
/**
|
||||
* EnterpriseTokenPayOrderTokenPaymentResponseDtoResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 账户
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* EnterpriseTokenPayOrderTokenPaymentResponseDtoResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class EnterpriseTokenPayOrderTokenPaymentResponseDtoResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'EnterpriseTokenPayOrderTokenPaymentResponseDtoResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'token' => 'string',
|
||||
'orderStatus' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'token' => null,
|
||||
'orderStatus' => 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',
|
||||
'token' => 'token',
|
||||
'orderStatus' => 'orderStatus'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'token' => 'setToken',
|
||||
'orderStatus' => 'setOrderStatus'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'token' => 'getToken',
|
||||
'orderStatus' => 'getOrderStatus'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['token'] = isset($data['token']) ? $data['token'] : null;
|
||||
$this->container['orderStatus'] = isset($data['orderStatus']) ? $data['orderStatus'] : 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 token
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return $this->container['token'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token
|
||||
*
|
||||
* @param string $token token
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setToken($token)
|
||||
{
|
||||
$this->container['token'] = $token;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderStatus
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderStatus()
|
||||
{
|
||||
return $this->container['orderStatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderStatus
|
||||
*
|
||||
* @param string $orderStatus 订单状态
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderStatus($orderStatus)
|
||||
{
|
||||
$this->container['orderStatus'] = $orderStatus;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,332 @@
|
||||
<?php
|
||||
/**
|
||||
* ExternalOrderExternalOrderSubmitOrderRespDtoResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 账户
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* ExternalOrderExternalOrderSubmitOrderRespDtoResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class ExternalOrderExternalOrderSubmitOrderRespDtoResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'ExternalOrderExternalOrderSubmitOrderRespDtoResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
*
|
||||
* @param string $code 响应码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
*
|
||||
* @param string $message 响应描述
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
467
lib/Service/Account/Model/ExternalOrderRequest.php
Normal file
467
lib/Service/Account/Model/ExternalOrderRequest.php
Normal file
@@ -0,0 +1,467 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class ExternalOrderRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $channelName;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $orderId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantName;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $goodsName;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $trxDate;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $finishDate;
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
private $orderAmount;
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
private $realAmount;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $payerUserId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $payWay;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $payCardNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $payCardType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userRequestIp;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $trxType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $batchNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $channelExtInfo;
|
||||
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return ExternalOrderRequest
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo
|
||||
* @return ExternalOrderRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets channelName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getChannelName()
|
||||
{
|
||||
return $this->channelName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets channelName
|
||||
*
|
||||
* @param string $channelName
|
||||
* @return ExternalOrderRequest
|
||||
*/
|
||||
public function setChannelName($channelName)
|
||||
{
|
||||
$this->channelName = $channelName;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets orderId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->orderId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderId
|
||||
*
|
||||
* @param string $orderId
|
||||
* @return ExternalOrderRequest
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantName()
|
||||
{
|
||||
return $this->merchantName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantName
|
||||
*
|
||||
* @param string $merchantName
|
||||
* @return ExternalOrderRequest
|
||||
*/
|
||||
public function setMerchantName($merchantName)
|
||||
{
|
||||
$this->merchantName = $merchantName;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets goodsName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getGoodsName()
|
||||
{
|
||||
return $this->goodsName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets goodsName
|
||||
*
|
||||
* @param string $goodsName
|
||||
* @return ExternalOrderRequest
|
||||
*/
|
||||
public function setGoodsName($goodsName)
|
||||
{
|
||||
$this->goodsName = $goodsName;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets trxDate
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTrxDate()
|
||||
{
|
||||
return $this->trxDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets trxDate
|
||||
*
|
||||
* @param string $trxDate
|
||||
* @return ExternalOrderRequest
|
||||
*/
|
||||
public function setTrxDate($trxDate)
|
||||
{
|
||||
$this->trxDate = $trxDate;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets finishDate
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFinishDate()
|
||||
{
|
||||
return $this->finishDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets finishDate
|
||||
*
|
||||
* @param string $finishDate
|
||||
* @return ExternalOrderRequest
|
||||
*/
|
||||
public function setFinishDate($finishDate)
|
||||
{
|
||||
$this->finishDate = $finishDate;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets orderAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getOrderAmount()
|
||||
{
|
||||
return $this->orderAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderAmount
|
||||
*
|
||||
* @param float $orderAmount
|
||||
* @return ExternalOrderRequest
|
||||
*/
|
||||
public function setOrderAmount($orderAmount)
|
||||
{
|
||||
$this->orderAmount = $orderAmount;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets realAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getRealAmount()
|
||||
{
|
||||
return $this->realAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets realAmount
|
||||
*
|
||||
* @param float $realAmount
|
||||
* @return ExternalOrderRequest
|
||||
*/
|
||||
public function setRealAmount($realAmount)
|
||||
{
|
||||
$this->realAmount = $realAmount;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets payerUserId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayerUserId()
|
||||
{
|
||||
return $this->payerUserId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payerUserId
|
||||
*
|
||||
* @param string $payerUserId
|
||||
* @return ExternalOrderRequest
|
||||
*/
|
||||
public function setPayerUserId($payerUserId)
|
||||
{
|
||||
$this->payerUserId = $payerUserId;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets payWay
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayWay()
|
||||
{
|
||||
return $this->payWay;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payWay
|
||||
*
|
||||
* @param string $payWay
|
||||
* @return ExternalOrderRequest
|
||||
*/
|
||||
public function setPayWay($payWay)
|
||||
{
|
||||
$this->payWay = $payWay;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets payCardNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayCardNo()
|
||||
{
|
||||
return $this->payCardNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payCardNo
|
||||
*
|
||||
* @param string $payCardNo
|
||||
* @return ExternalOrderRequest
|
||||
*/
|
||||
public function setPayCardNo($payCardNo)
|
||||
{
|
||||
$this->payCardNo = $payCardNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets payCardType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayCardType()
|
||||
{
|
||||
return $this->payCardType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payCardType
|
||||
*
|
||||
* @param string $payCardType
|
||||
* @return ExternalOrderRequest
|
||||
*/
|
||||
public function setPayCardType($payCardType)
|
||||
{
|
||||
$this->payCardType = $payCardType;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets userRequestIp
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUserRequestIp()
|
||||
{
|
||||
return $this->userRequestIp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userRequestIp
|
||||
*
|
||||
* @param string $userRequestIp
|
||||
* @return ExternalOrderRequest
|
||||
*/
|
||||
public function setUserRequestIp($userRequestIp)
|
||||
{
|
||||
$this->userRequestIp = $userRequestIp;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets trxType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTrxType()
|
||||
{
|
||||
return $this->trxType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets trxType
|
||||
*
|
||||
* @param string $trxType
|
||||
* @return ExternalOrderRequest
|
||||
*/
|
||||
public function setTrxType($trxType)
|
||||
{
|
||||
$this->trxType = $trxType;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets batchNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBatchNo()
|
||||
{
|
||||
return $this->batchNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets batchNo
|
||||
*
|
||||
* @param string $batchNo
|
||||
* @return ExternalOrderRequest
|
||||
*/
|
||||
public function setBatchNo($batchNo)
|
||||
{
|
||||
$this->batchNo = $batchNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets channelExtInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getChannelExtInfo()
|
||||
{
|
||||
return $this->channelExtInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets channelExtInfo
|
||||
*
|
||||
* @param string $channelExtInfo
|
||||
* @return ExternalOrderRequest
|
||||
*/
|
||||
public function setChannelExtInfo($channelExtInfo)
|
||||
{
|
||||
$this->channelExtInfo = $channelExtInfo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'externalOrder';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
131
lib/Service/Account/Model/ExternalOrderRequestMarshaller.php
Normal file
131
lib/Service/Account/Model/ExternalOrderRequestMarshaller.php
Normal file
@@ -0,0 +1,131 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\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 ExternalOrderRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var ExternalOrderRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ExternalOrderRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ExternalOrderRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Account';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/account/external/order';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param ExternalOrderRequest $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
if($request->getRequestNo() != null){
|
||||
$internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getChannelName() != null){
|
||||
$internalRequest->addParameter('channelName', ObjectSerializer::sanitizeForSerialization($request->getChannelName(), 'string'));
|
||||
}
|
||||
if($request->getOrderId() != null){
|
||||
$internalRequest->addParameter('orderId', ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string'));
|
||||
}
|
||||
if($request->getMerchantName() != null){
|
||||
$internalRequest->addParameter('merchantName', ObjectSerializer::sanitizeForSerialization($request->getMerchantName(), 'string'));
|
||||
}
|
||||
if($request->getGoodsName() != null){
|
||||
$internalRequest->addParameter('goodsName', ObjectSerializer::sanitizeForSerialization($request->getGoodsName(), 'string'));
|
||||
}
|
||||
if($request->getTrxDate() != null){
|
||||
$internalRequest->addParameter('trxDate', ObjectSerializer::sanitizeForSerialization($request->getTrxDate(), 'string'));
|
||||
}
|
||||
if($request->getFinishDate() != null){
|
||||
$internalRequest->addParameter('finishDate', ObjectSerializer::sanitizeForSerialization($request->getFinishDate(), 'string'));
|
||||
}
|
||||
if($request->getOrderAmount() != null){
|
||||
$internalRequest->addParameter('orderAmount', ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'float'));
|
||||
}
|
||||
if($request->getRealAmount() != null){
|
||||
$internalRequest->addParameter('realAmount', ObjectSerializer::sanitizeForSerialization($request->getRealAmount(), 'float'));
|
||||
}
|
||||
if($request->getPayerUserId() != null){
|
||||
$internalRequest->addParameter('payerUserId', ObjectSerializer::sanitizeForSerialization($request->getPayerUserId(), 'string'));
|
||||
}
|
||||
if($request->getPayWay() != null){
|
||||
$internalRequest->addParameter('payWay', ObjectSerializer::sanitizeForSerialization($request->getPayWay(), 'string'));
|
||||
}
|
||||
if($request->getPayCardNo() != null){
|
||||
$internalRequest->addParameter('payCardNo', ObjectSerializer::sanitizeForSerialization($request->getPayCardNo(), 'string'));
|
||||
}
|
||||
if($request->getPayCardType() != null){
|
||||
$internalRequest->addParameter('payCardType', ObjectSerializer::sanitizeForSerialization($request->getPayCardType(), 'string'));
|
||||
}
|
||||
if($request->getUserRequestIp() != null){
|
||||
$internalRequest->addParameter('userRequestIp', ObjectSerializer::sanitizeForSerialization($request->getUserRequestIp(), 'string'));
|
||||
}
|
||||
if($request->getTrxType() != null){
|
||||
$internalRequest->addParameter('trxType', ObjectSerializer::sanitizeForSerialization($request->getTrxType(), 'string'));
|
||||
}
|
||||
if($request->getBatchNo() != null){
|
||||
$internalRequest->addParameter('batchNo', ObjectSerializer::sanitizeForSerialization($request->getBatchNo(), 'string'));
|
||||
}
|
||||
if($request->getChannelExtInfo() != null){
|
||||
$internalRequest->addParameter('channelExtInfo', ObjectSerializer::sanitizeForSerialization($request->getChannelExtInfo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
ExternalOrderRequestMarshaller::__init();
|
||||
34
lib/Service/Account/Model/ExternalOrderResponse.php
Normal file
34
lib/Service/Account/Model/ExternalOrderResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class ExternalOrderResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var ExternalOrderExternalOrderSubmitOrderRespDtoResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Account\Model\ExternalOrderExternalOrderSubmitOrderRespDtoResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ExternalOrderExternalOrderSubmitOrderRespDtoResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ExternalOrderExternalOrderSubmitOrderRespDtoResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class ExternalOrderResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var ExternalOrderResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new ExternalOrderResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ExternalOrderResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ExternalOrderResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new ExternalOrderResponse();
|
||||
}
|
||||
}
|
||||
|
||||
ExternalOrderResponseUnMarshaller::__init();
|
||||
1065
lib/Service/Account/Model/HtbOpenAccountDTO.php
Normal file
1065
lib/Service/Account/Model/HtbOpenAccountDTO.php
Normal file
File diff suppressed because it is too large
Load Diff
217
lib/Service/Account/Model/IndividualApplyRequest.php
Normal file
217
lib/Service/Account/Model/IndividualApplyRequest.php
Normal file
@@ -0,0 +1,217 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class IndividualApplyRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $name;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $certificateType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $certificateNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $phone;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $frontUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contraryUrl;
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo
|
||||
* @return IndividualApplyRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return IndividualApplyRequest
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name
|
||||
*
|
||||
* @param string $name
|
||||
* @return IndividualApplyRequest
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets certificateType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCertificateType()
|
||||
{
|
||||
return $this->certificateType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets certificateType
|
||||
*
|
||||
* @param string $certificateType
|
||||
* @return IndividualApplyRequest
|
||||
*/
|
||||
public function setCertificateType($certificateType)
|
||||
{
|
||||
$this->certificateType = $certificateType;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets certificateNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCertificateNo()
|
||||
{
|
||||
return $this->certificateNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets certificateNo
|
||||
*
|
||||
* @param string $certificateNo
|
||||
* @return IndividualApplyRequest
|
||||
*/
|
||||
public function setCertificateNo($certificateNo)
|
||||
{
|
||||
$this->certificateNo = $certificateNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets phone
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPhone()
|
||||
{
|
||||
return $this->phone;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets phone
|
||||
*
|
||||
* @param string $phone
|
||||
* @return IndividualApplyRequest
|
||||
*/
|
||||
public function setPhone($phone)
|
||||
{
|
||||
$this->phone = $phone;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets frontUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFrontUrl()
|
||||
{
|
||||
return $this->frontUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets frontUrl
|
||||
*
|
||||
* @param string $frontUrl
|
||||
* @return IndividualApplyRequest
|
||||
*/
|
||||
public function setFrontUrl($frontUrl)
|
||||
{
|
||||
$this->frontUrl = $frontUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets contraryUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getContraryUrl()
|
||||
{
|
||||
return $this->contraryUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets contraryUrl
|
||||
*
|
||||
* @param string $contraryUrl
|
||||
* @return IndividualApplyRequest
|
||||
*/
|
||||
public function setContraryUrl($contraryUrl)
|
||||
{
|
||||
$this->contraryUrl = $contraryUrl;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'individualApply';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
101
lib/Service/Account/Model/IndividualApplyRequestMarshaller.php
Normal file
101
lib/Service/Account/Model/IndividualApplyRequestMarshaller.php
Normal file
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\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 IndividualApplyRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var IndividualApplyRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new IndividualApplyRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return IndividualApplyRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Account';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/account/individual/apply';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param IndividualApplyRequest $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getRequestNo() != null){
|
||||
$internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
|
||||
}
|
||||
if($request->getName() != null){
|
||||
$internalRequest->addParameter('name', ObjectSerializer::sanitizeForSerialization($request->getName(), 'string'));
|
||||
}
|
||||
if($request->getCertificateType() != null){
|
||||
$internalRequest->addParameter('certificateType', ObjectSerializer::sanitizeForSerialization($request->getCertificateType(), 'string', 'enum'));
|
||||
}
|
||||
if($request->getCertificateNo() != null){
|
||||
$internalRequest->addParameter('certificateNo', ObjectSerializer::sanitizeForSerialization($request->getCertificateNo(), 'string'));
|
||||
}
|
||||
if($request->getPhone() != null){
|
||||
$internalRequest->addParameter('phone', ObjectSerializer::sanitizeForSerialization($request->getPhone(), 'string'));
|
||||
}
|
||||
if($request->getFrontUrl() != null){
|
||||
$internalRequest->addParameter('frontUrl', ObjectSerializer::sanitizeForSerialization($request->getFrontUrl(), 'string'));
|
||||
}
|
||||
if($request->getContraryUrl() != null){
|
||||
$internalRequest->addParameter('contraryUrl', ObjectSerializer::sanitizeForSerialization($request->getContraryUrl(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
IndividualApplyRequestMarshaller::__init();
|
||||
34
lib/Service/Account/Model/IndividualApplyResponse.php
Normal file
34
lib/Service/Account/Model/IndividualApplyResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class IndividualApplyResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var ApplyIndividualRespDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Account\Model\ApplyIndividualRespDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ApplyIndividualRespDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ApplyIndividualRespDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class IndividualApplyResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var IndividualApplyResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new IndividualApplyResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return IndividualApplyResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return IndividualApplyResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new IndividualApplyResponse();
|
||||
}
|
||||
}
|
||||
|
||||
IndividualApplyResponseUnMarshaller::__init();
|
||||
471
lib/Service/Account/Model/IndividualDTO.php
Normal file
471
lib/Service/Account/Model/IndividualDTO.php
Normal file
@@ -0,0 +1,471 @@
|
||||
<?php
|
||||
/**
|
||||
* IndividualDTO
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 账户
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* IndividualDTO Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description 查询付款到个人信息详情
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class IndividualDTO implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'IndividualDTO';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'merchantNo' => 'string',
|
||||
'id' => 'int',
|
||||
'name' => 'string',
|
||||
'phone' => 'string',
|
||||
'certificateType' => 'string',
|
||||
'certificateNo' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'merchantNo' => null,
|
||||
'id' => 'int64',
|
||||
'name' => null,
|
||||
'phone' => null,
|
||||
'certificateType' => null,
|
||||
'certificateNo' => 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 = [
|
||||
'merchantNo' => 'merchantNo',
|
||||
'id' => 'id',
|
||||
'name' => 'name',
|
||||
'phone' => 'phone',
|
||||
'certificateType' => 'certificateType',
|
||||
'certificateNo' => 'certificateNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'id' => 'setId',
|
||||
'name' => 'setName',
|
||||
'phone' => 'setPhone',
|
||||
'certificateType' => 'setCertificateType',
|
||||
'certificateNo' => 'setCertificateNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'id' => 'getId',
|
||||
'name' => 'getName',
|
||||
'phone' => 'getPhone',
|
||||
'certificateType' => 'getCertificateType',
|
||||
'certificateNo' => 'getCertificateNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
|
||||
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
|
||||
$this->container['phone'] = isset($data['phone']) ? $data['phone'] : null;
|
||||
$this->container['certificateType'] = isset($data['certificateType']) ? $data['certificateType'] : null;
|
||||
$this->container['certificateNo'] = isset($data['certificateNo']) ? $data['certificateNo'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
if ($this->container['merchantNo'] === null) {
|
||||
$invalidProperties[] = "'merchantNo' can't be null";
|
||||
}
|
||||
if ($this->container['id'] === null) {
|
||||
$invalidProperties[] = "'id' can't be null";
|
||||
}
|
||||
if ($this->container['name'] === null) {
|
||||
$invalidProperties[] = "'name' can't be null";
|
||||
}
|
||||
if ($this->container['phone'] === null) {
|
||||
$invalidProperties[] = "'phone' can't be null";
|
||||
}
|
||||
if ($this->container['certificateType'] === null) {
|
||||
$invalidProperties[] = "'certificateType' can't be null";
|
||||
}
|
||||
if ($this->container['certificateNo'] === null) {
|
||||
$invalidProperties[] = "'certificateNo' 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 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 id
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->container['id'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets id
|
||||
*
|
||||
* @param int $id <p>收款方id</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setId($id)
|
||||
{
|
||||
$this->container['id'] = $id;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->container['name'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name
|
||||
*
|
||||
* @param string $name <pre>个人姓名</pre>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->container['name'] = $name;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets phone
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPhone()
|
||||
{
|
||||
return $this->container['phone'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets phone
|
||||
*
|
||||
* @param string $phone <p>手机号</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPhone($phone)
|
||||
{
|
||||
$this->container['phone'] = $phone;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets certificateType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCertificateType()
|
||||
{
|
||||
return $this->container['certificateType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets certificateType
|
||||
*
|
||||
* @param string $certificateType <p>证件类型</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCertificateType($certificateType)
|
||||
{
|
||||
$this->container['certificateType'] = $certificateType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets certificateNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCertificateNo()
|
||||
{
|
||||
return $this->container['certificateNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets certificateNo
|
||||
*
|
||||
* @param string $certificateNo <p>证件号</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCertificateNo($certificateNo)
|
||||
{
|
||||
$this->container['certificateNo'] = $certificateNo;
|
||||
|
||||
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/Account/Model/IndividualQueryProgressRequest.php
Normal file
42
lib/Service/Account/Model/IndividualQueryProgressRequest.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class IndividualQueryProgressRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return IndividualQueryProgressRequest
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'individualQueryProgress';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\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 IndividualQueryProgressRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var IndividualQueryProgressRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new IndividualQueryProgressRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return IndividualQueryProgressRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Account';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/account/individual/query-progress';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param IndividualQueryProgressRequest $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
if($request->getRequestNo() != null){
|
||||
$internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
IndividualQueryProgressRequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class IndividualQueryProgressResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var ApplyIndivdualProgressRespDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Account\Model\ApplyIndivdualProgressRespDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ApplyIndivdualProgressRespDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ApplyIndivdualProgressRespDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class IndividualQueryProgressResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var IndividualQueryProgressResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new IndividualQueryProgressResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return IndividualQueryProgressResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return IndividualQueryProgressResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new IndividualQueryProgressResponse();
|
||||
}
|
||||
}
|
||||
|
||||
IndividualQueryProgressResponseUnMarshaller::__init();
|
||||
42
lib/Service/Account/Model/IndividualQueryRequest.php
Normal file
42
lib/Service/Account/Model/IndividualQueryRequest.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class IndividualQueryRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo
|
||||
* @return IndividualQueryRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'individualQuery';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\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 IndividualQueryRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var IndividualQueryRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new IndividualQueryRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return IndividualQueryRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Account';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/account/individual/query';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param IndividualQueryRequest $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
IndividualQueryRequestMarshaller::__init();
|
||||
34
lib/Service/Account/Model/IndividualQueryResponse.php
Normal file
34
lib/Service/Account/Model/IndividualQueryResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
class IndividualQueryResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var QueryIndividualRespDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Account\Model\QueryIndividualRespDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param QueryIndividualRespDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return QueryIndividualRespDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class IndividualQueryResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var IndividualQueryResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new IndividualQueryResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return IndividualQueryResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return IndividualQueryResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new IndividualQueryResponse();
|
||||
}
|
||||
}
|
||||
|
||||
IndividualQueryResponseUnMarshaller::__init();
|
||||
711
lib/Service/Account/Model/JsbcOpenAccountDTO.php
Normal file
711
lib/Service/Account/Model/JsbcOpenAccountDTO.php
Normal file
@@ -0,0 +1,711 @@
|
||||
<?php
|
||||
/**
|
||||
* JsbcOpenAccountDTO
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 账户
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* JsbcOpenAccountDTO Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description 江苏银行拓展参数
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class JsbcOpenAccountDTO implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'JsbcOpenAccountDTO';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'accountType' => 'string',
|
||||
'bindCardType' => 'string',
|
||||
'bindCardNo' => 'string',
|
||||
'bindBankCode' => 'string',
|
||||
'bindAccountName' => 'string',
|
||||
'businessLicenceEffectiveDate' => 'string',
|
||||
'businessLicenceExpirationDate' => 'string',
|
||||
'legalLicenceEffectiveDate' => 'string',
|
||||
'legalLicenceExpirationDate' => 'string',
|
||||
'registerAddress' => 'string',
|
||||
'organizationNo' => 'string',
|
||||
'organizationStart' => 'string',
|
||||
'organizationNoEnd' => 'string',
|
||||
'taxNo' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'accountType' => null,
|
||||
'bindCardType' => null,
|
||||
'bindCardNo' => null,
|
||||
'bindBankCode' => null,
|
||||
'bindAccountName' => null,
|
||||
'businessLicenceEffectiveDate' => null,
|
||||
'businessLicenceExpirationDate' => null,
|
||||
'legalLicenceEffectiveDate' => null,
|
||||
'legalLicenceExpirationDate' => null,
|
||||
'registerAddress' => null,
|
||||
'organizationNo' => null,
|
||||
'organizationStart' => null,
|
||||
'organizationNoEnd' => null,
|
||||
'taxNo' => 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 = [
|
||||
'accountType' => 'accountType',
|
||||
'bindCardType' => 'bindCardType',
|
||||
'bindCardNo' => 'bindCardNo',
|
||||
'bindBankCode' => 'bindBankCode',
|
||||
'bindAccountName' => 'bindAccountName',
|
||||
'businessLicenceEffectiveDate' => 'businessLicenceEffectiveDate',
|
||||
'businessLicenceExpirationDate' => 'businessLicenceExpirationDate',
|
||||
'legalLicenceEffectiveDate' => 'legalLicenceEffectiveDate',
|
||||
'legalLicenceExpirationDate' => 'legalLicenceExpirationDate',
|
||||
'registerAddress' => 'registerAddress',
|
||||
'organizationNo' => 'organizationNo',
|
||||
'organizationStart' => 'organizationStart',
|
||||
'organizationNoEnd' => 'organizationNoEnd',
|
||||
'taxNo' => 'taxNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'accountType' => 'setAccountType',
|
||||
'bindCardType' => 'setBindCardType',
|
||||
'bindCardNo' => 'setBindCardNo',
|
||||
'bindBankCode' => 'setBindBankCode',
|
||||
'bindAccountName' => 'setBindAccountName',
|
||||
'businessLicenceEffectiveDate' => 'setBusinessLicenceEffectiveDate',
|
||||
'businessLicenceExpirationDate' => 'setBusinessLicenceExpirationDate',
|
||||
'legalLicenceEffectiveDate' => 'setLegalLicenceEffectiveDate',
|
||||
'legalLicenceExpirationDate' => 'setLegalLicenceExpirationDate',
|
||||
'registerAddress' => 'setRegisterAddress',
|
||||
'organizationNo' => 'setOrganizationNo',
|
||||
'organizationStart' => 'setOrganizationStart',
|
||||
'organizationNoEnd' => 'setOrganizationNoEnd',
|
||||
'taxNo' => 'setTaxNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'accountType' => 'getAccountType',
|
||||
'bindCardType' => 'getBindCardType',
|
||||
'bindCardNo' => 'getBindCardNo',
|
||||
'bindBankCode' => 'getBindBankCode',
|
||||
'bindAccountName' => 'getBindAccountName',
|
||||
'businessLicenceEffectiveDate' => 'getBusinessLicenceEffectiveDate',
|
||||
'businessLicenceExpirationDate' => 'getBusinessLicenceExpirationDate',
|
||||
'legalLicenceEffectiveDate' => 'getLegalLicenceEffectiveDate',
|
||||
'legalLicenceExpirationDate' => 'getLegalLicenceExpirationDate',
|
||||
'registerAddress' => 'getRegisterAddress',
|
||||
'organizationNo' => 'getOrganizationNo',
|
||||
'organizationStart' => 'getOrganizationStart',
|
||||
'organizationNoEnd' => 'getOrganizationNoEnd',
|
||||
'taxNo' => 'getTaxNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['accountType'] = isset($data['accountType']) ? $data['accountType'] : null;
|
||||
$this->container['bindCardType'] = isset($data['bindCardType']) ? $data['bindCardType'] : null;
|
||||
$this->container['bindCardNo'] = isset($data['bindCardNo']) ? $data['bindCardNo'] : null;
|
||||
$this->container['bindBankCode'] = isset($data['bindBankCode']) ? $data['bindBankCode'] : null;
|
||||
$this->container['bindAccountName'] = isset($data['bindAccountName']) ? $data['bindAccountName'] : null;
|
||||
$this->container['businessLicenceEffectiveDate'] = isset($data['businessLicenceEffectiveDate']) ? $data['businessLicenceEffectiveDate'] : null;
|
||||
$this->container['businessLicenceExpirationDate'] = isset($data['businessLicenceExpirationDate']) ? $data['businessLicenceExpirationDate'] : null;
|
||||
$this->container['legalLicenceEffectiveDate'] = isset($data['legalLicenceEffectiveDate']) ? $data['legalLicenceEffectiveDate'] : null;
|
||||
$this->container['legalLicenceExpirationDate'] = isset($data['legalLicenceExpirationDate']) ? $data['legalLicenceExpirationDate'] : null;
|
||||
$this->container['registerAddress'] = isset($data['registerAddress']) ? $data['registerAddress'] : null;
|
||||
$this->container['organizationNo'] = isset($data['organizationNo']) ? $data['organizationNo'] : null;
|
||||
$this->container['organizationStart'] = isset($data['organizationStart']) ? $data['organizationStart'] : null;
|
||||
$this->container['organizationNoEnd'] = isset($data['organizationNoEnd']) ? $data['organizationNoEnd'] : null;
|
||||
$this->container['taxNo'] = isset($data['taxNo']) ? $data['taxNo'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
if ($this->container['accountType'] === null) {
|
||||
$invalidProperties[] = "'accountType' can't be null";
|
||||
}
|
||||
if ($this->container['businessLicenceEffectiveDate'] === null) {
|
||||
$invalidProperties[] = "'businessLicenceEffectiveDate' can't be null";
|
||||
}
|
||||
if ($this->container['businessLicenceExpirationDate'] === null) {
|
||||
$invalidProperties[] = "'businessLicenceExpirationDate' can't be null";
|
||||
}
|
||||
if ($this->container['legalLicenceEffectiveDate'] === null) {
|
||||
$invalidProperties[] = "'legalLicenceEffectiveDate' can't be null";
|
||||
}
|
||||
if ($this->container['legalLicenceExpirationDate'] === null) {
|
||||
$invalidProperties[] = "'legalLicenceExpirationDate' can't be null";
|
||||
}
|
||||
if ($this->container['registerAddress'] === null) {
|
||||
$invalidProperties[] = "'registerAddress' 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 accountType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountType()
|
||||
{
|
||||
return $this->container['accountType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets accountType
|
||||
*
|
||||
* @param string $accountType 账户类型<br>可选项如下:<br>FUND_ACCOUNT:资金账户<br>ADVANCE_ACCOUNT:预收账户
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAccountType($accountType)
|
||||
{
|
||||
$this->container['accountType'] = $accountType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bindCardType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBindCardType()
|
||||
{
|
||||
return $this->container['bindCardType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bindCardType
|
||||
*
|
||||
* @param string $bindCardType 绑定卡类型<br>可选项如下:<br>PUBLIC_CARD:对公卡<br>PRIVATE_CARD:对私卡
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBindCardType($bindCardType)
|
||||
{
|
||||
$this->container['bindCardType'] = $bindCardType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bindCardNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBindCardNo()
|
||||
{
|
||||
return $this->container['bindCardNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bindCardNo
|
||||
*
|
||||
* @param string $bindCardNo 绑定银行卡号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBindCardNo($bindCardNo)
|
||||
{
|
||||
$this->container['bindCardNo'] = $bindCardNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bindBankCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBindBankCode()
|
||||
{
|
||||
return $this->container['bindBankCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bindBankCode
|
||||
*
|
||||
* @param string $bindBankCode 绑定银行编码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBindBankCode($bindBankCode)
|
||||
{
|
||||
$this->container['bindBankCode'] = $bindBankCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bindAccountName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBindAccountName()
|
||||
{
|
||||
return $this->container['bindAccountName'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bindAccountName
|
||||
*
|
||||
* @param string $bindAccountName 绑定账户名称
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBindAccountName($bindAccountName)
|
||||
{
|
||||
$this->container['bindAccountName'] = $bindAccountName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets businessLicenceEffectiveDate
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessLicenceEffectiveDate()
|
||||
{
|
||||
return $this->container['businessLicenceEffectiveDate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets businessLicenceEffectiveDate
|
||||
*
|
||||
* @param string $businessLicenceEffectiveDate 营业执照生效日期<br>格式为yyyyMMdd
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBusinessLicenceEffectiveDate($businessLicenceEffectiveDate)
|
||||
{
|
||||
$this->container['businessLicenceEffectiveDate'] = $businessLicenceEffectiveDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets businessLicenceExpirationDate
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessLicenceExpirationDate()
|
||||
{
|
||||
return $this->container['businessLicenceExpirationDate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets businessLicenceExpirationDate
|
||||
*
|
||||
* @param string $businessLicenceExpirationDate 营业执照失效日期<br>参数格式为yyyyMMdd或者forever
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBusinessLicenceExpirationDate($businessLicenceExpirationDate)
|
||||
{
|
||||
$this->container['businessLicenceExpirationDate'] = $businessLicenceExpirationDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets legalLicenceEffectiveDate
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getLegalLicenceEffectiveDate()
|
||||
{
|
||||
return $this->container['legalLicenceEffectiveDate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets legalLicenceEffectiveDate
|
||||
*
|
||||
* @param string $legalLicenceEffectiveDate 法人证件生效日期<br>参数格式为yyyyMMdd
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setLegalLicenceEffectiveDate($legalLicenceEffectiveDate)
|
||||
{
|
||||
$this->container['legalLicenceEffectiveDate'] = $legalLicenceEffectiveDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets legalLicenceExpirationDate
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getLegalLicenceExpirationDate()
|
||||
{
|
||||
return $this->container['legalLicenceExpirationDate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets legalLicenceExpirationDate
|
||||
*
|
||||
* @param string $legalLicenceExpirationDate 法人证件失效日期<br>参数格式为yyyyMMdd或者forever
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setLegalLicenceExpirationDate($legalLicenceExpirationDate)
|
||||
{
|
||||
$this->container['legalLicenceExpirationDate'] = $legalLicenceExpirationDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets registerAddress
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRegisterAddress()
|
||||
{
|
||||
return $this->container['registerAddress'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets registerAddress
|
||||
*
|
||||
* @param string $registerAddress 商户注册地址不能超过512位
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRegisterAddress($registerAddress)
|
||||
{
|
||||
$this->container['registerAddress'] = $registerAddress;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets organizationNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrganizationNo()
|
||||
{
|
||||
return $this->container['organizationNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets organizationNo
|
||||
*
|
||||
* @param string $organizationNo 组织机构代码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrganizationNo($organizationNo)
|
||||
{
|
||||
$this->container['organizationNo'] = $organizationNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets organizationStart
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrganizationStart()
|
||||
{
|
||||
return $this->container['organizationStart'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets organizationStart
|
||||
*
|
||||
* @param string $organizationStart 组织机构代码生效日期<br>参数格式为yyyyMMdd或者forever
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrganizationStart($organizationStart)
|
||||
{
|
||||
$this->container['organizationStart'] = $organizationStart;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets organizationNoEnd
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrganizationNoEnd()
|
||||
{
|
||||
return $this->container['organizationNoEnd'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets organizationNoEnd
|
||||
*
|
||||
* @param string $organizationNoEnd 组织机构代码失效日期<br>参数格式为yyyyMMdd或者forever
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrganizationNoEnd($organizationNoEnd)
|
||||
{
|
||||
$this->container['organizationNoEnd'] = $organizationNoEnd;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets taxNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getTaxNo()
|
||||
{
|
||||
return $this->container['taxNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets taxNo
|
||||
*
|
||||
* @param string $taxNo 税务登记号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setTaxNo($taxNo)
|
||||
{
|
||||
$this->container['taxNo'] = $taxNo;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
399
lib/Service/Account/Model/OpenAccountAuthApplyRespDTO.php
Normal file
399
lib/Service/Account/Model/OpenAccountAuthApplyRespDTO.php
Normal file
@@ -0,0 +1,399 @@
|
||||
<?php
|
||||
/**
|
||||
* OpenAccountAuthApplyRespDTO
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 账户
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Account\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* OpenAccountAuthApplyRespDTO Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description 请修改我
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class OpenAccountAuthApplyRespDTO implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'OpenAccountAuthApplyRespDTO';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'returnCode' => 'string',
|
||||
'returnMsg' => 'string',
|
||||
'requestNo' => 'string',
|
||||
'status' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'returnCode' => null,
|
||||
'returnMsg' => null,
|
||||
'requestNo' => null,
|
||||
'status' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'returnCode' => 'returnCode',
|
||||
'returnMsg' => 'returnMsg',
|
||||
'requestNo' => 'requestNo',
|
||||
'status' => 'status'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'returnCode' => 'setReturnCode',
|
||||
'returnMsg' => 'setReturnMsg',
|
||||
'requestNo' => 'setRequestNo',
|
||||
'status' => 'setStatus'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'returnCode' => 'getReturnCode',
|
||||
'returnMsg' => 'getReturnMsg',
|
||||
'requestNo' => 'getRequestNo',
|
||||
'status' => 'getStatus'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
|
||||
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
|
||||
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
if ($this->container['returnCode'] === null) {
|
||||
$invalidProperties[] = "'returnCode' can't be null";
|
||||
}
|
||||
if ($this->container['requestNo'] === null) {
|
||||
$invalidProperties[] = "'requestNo' 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 returnCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnCode()
|
||||
{
|
||||
return $this->container['returnCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnCode
|
||||
*
|
||||
* @param string $returnCode <p>返回码,响应成功时返回UA00000</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnCode($returnCode)
|
||||
{
|
||||
$this->container['returnCode'] = $returnCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets returnMsg
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnMsg()
|
||||
{
|
||||
return $this->container['returnMsg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnMsg
|
||||
*
|
||||
* @param string $returnMsg <p>返回信息</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturnMsg($returnMsg)
|
||||
{
|
||||
$this->container['returnMsg'] = $returnMsg;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->container['requestNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo <p>请求号</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->container['requestNo'] = $requestNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets status
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->container['status'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status
|
||||
*
|
||||
* @param string $status <p>响应状态:</p> <div data-page-id=\"LeHwdQ4vto5Jaaxfth6c46aHnMe\" data-docx-has-block-data=\"false\"> <div class=\"ace-line ace-line old-record-id-Fs1RdcyHvo96VtxeUJrcPHignIc\"><em>SUCCESS 成功</em> <em>FAIL 失败</em></div> </div>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->container['status'] = $status;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user