增加聚合支付托管下单
This commit is contained in:
363
lib/Service/MWallet/Model/APIWalletPayResponseDTO.php
Normal file
363
lib/Service/MWallet/Model/APIWalletPayResponseDTO.php
Normal file
@@ -0,0 +1,363 @@
|
||||
<?php
|
||||
/**
|
||||
* APIWalletPayResponseDTO
|
||||
*
|
||||
* 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\MWallet\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* APIWalletPayResponseDTO Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description 响应结果
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class APIWalletPayResponseDTO implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'APIWalletPayResponseDTO';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'uniqueOrderNo' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'uniqueOrderNo' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'uniqueOrderNo' => 'uniqueOrderNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'uniqueOrderNo' => 'setUniqueOrderNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'uniqueOrderNo' => 'getUniqueOrderNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['uniqueOrderNo'] = isset($data['uniqueOrderNo']) ? $data['uniqueOrderNo'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
*
|
||||
* @param string $code 返回码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
*
|
||||
* @param string $message 返回信息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets uniqueOrderNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUniqueOrderNo()
|
||||
{
|
||||
return $this->container['uniqueOrderNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets uniqueOrderNo
|
||||
*
|
||||
* @param string $uniqueOrderNo 易宝唯一流水号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUniqueOrderNo($uniqueOrderNo)
|
||||
{
|
||||
$this->container['uniqueOrderNo'] = $uniqueOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
267
lib/Service/MWallet/Model/AccountFaceCertifyOpenRequest.php
Normal file
267
lib/Service/MWallet/Model/AccountFaceCertifyOpenRequest.php
Normal file
@@ -0,0 +1,267 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AccountFaceCertifyOpenRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $name;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $certificateType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $certificateNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantUserNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $mobile;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $returnUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
|
||||
/**
|
||||
* Gets name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name
|
||||
*
|
||||
* @param string $name
|
||||
* @return AccountFaceCertifyOpenRequest
|
||||
*/
|
||||
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 AccountFaceCertifyOpenRequest
|
||||
*/
|
||||
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 AccountFaceCertifyOpenRequest
|
||||
*/
|
||||
public function setCertificateNo($certificateNo)
|
||||
{
|
||||
$this->certificateNo = $certificateNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return AccountFaceCertifyOpenRequest
|
||||
*/
|
||||
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 AccountFaceCertifyOpenRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantUserNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantUserNo()
|
||||
{
|
||||
return $this->merchantUserNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantUserNo
|
||||
*
|
||||
* @param string $merchantUserNo
|
||||
* @return AccountFaceCertifyOpenRequest
|
||||
*/
|
||||
public function setMerchantUserNo($merchantUserNo)
|
||||
{
|
||||
$this->merchantUserNo = $merchantUserNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets mobile
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMobile()
|
||||
{
|
||||
return $this->mobile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets mobile
|
||||
*
|
||||
* @param string $mobile
|
||||
* @return AccountFaceCertifyOpenRequest
|
||||
*/
|
||||
public function setMobile($mobile)
|
||||
{
|
||||
$this->mobile = $mobile;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return AccountFaceCertifyOpenRequest
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets returnUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnUrl()
|
||||
{
|
||||
return $this->returnUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnUrl
|
||||
*
|
||||
* @param string $returnUrl
|
||||
* @return AccountFaceCertifyOpenRequest
|
||||
*/
|
||||
public function setReturnUrl($returnUrl)
|
||||
{
|
||||
$this->returnUrl = $returnUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
*
|
||||
* @param string $notifyUrl
|
||||
* @return AccountFaceCertifyOpenRequest
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'account_face_certify_open';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\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 AccountFaceCertifyOpenRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AccountFaceCertifyOpenRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountFaceCertifyOpenRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountFaceCertifyOpenRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'MWallet';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/m-wallet/account/face-certify-open';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AccountFaceCertifyOpenRequest $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->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->getRequestNo() != null){
|
||||
$internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantUserNo() != null){
|
||||
$internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string'));
|
||||
}
|
||||
if($request->getMobile() != null){
|
||||
$internalRequest->addParameter('mobile', ObjectSerializer::sanitizeForSerialization($request->getMobile(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getReturnUrl() != null){
|
||||
$internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string', 'notify-url'));
|
||||
}
|
||||
if($request->getNotifyUrl() != null){
|
||||
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'notify-url'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AccountFaceCertifyOpenRequestMarshaller::__init();
|
||||
34
lib/Service/MWallet/Model/AccountFaceCertifyOpenResponse.php
Normal file
34
lib/Service/MWallet/Model/AccountFaceCertifyOpenResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AccountFaceCertifyOpenResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var WalletOpenByFaceResponseDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\MWallet\Model\WalletOpenByFaceResponseDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param WalletOpenByFaceResponseDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WalletOpenByFaceResponseDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AccountFaceCertifyOpenResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AccountFaceCertifyOpenResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountFaceCertifyOpenResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountFaceCertifyOpenResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountFaceCertifyOpenResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AccountFaceCertifyOpenResponse();
|
||||
}
|
||||
}
|
||||
|
||||
AccountFaceCertifyOpenResponseUnMarshaller::__init();
|
||||
693
lib/Service/MWallet/Model/AccountMemberDTO.php
Normal file
693
lib/Service/MWallet/Model/AccountMemberDTO.php
Normal file
@@ -0,0 +1,693 @@
|
||||
<?php
|
||||
/**
|
||||
* AccountMemberDTO
|
||||
*
|
||||
* 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\MWallet\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* AccountMemberDTO Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description 会员信息
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class AccountMemberDTO implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'AccountMemberDTO';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'memberName' => 'string',
|
||||
'idCardNo' => 'string',
|
||||
'idCardType' => 'string',
|
||||
'mobile' => 'string',
|
||||
'sex' => 'string',
|
||||
'address' => 'string',
|
||||
'idCardBeginDate' => 'string',
|
||||
'idCardEndDate' => 'string',
|
||||
'idCardOrg' => 'string',
|
||||
'corpOrationType' => 'string',
|
||||
'idImageFront' => 'string',
|
||||
'idImageBack' => 'string',
|
||||
'faceImage' => 'string',
|
||||
'bankNo' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'memberName' => null,
|
||||
'idCardNo' => null,
|
||||
'idCardType' => null,
|
||||
'mobile' => null,
|
||||
'sex' => null,
|
||||
'address' => null,
|
||||
'idCardBeginDate' => null,
|
||||
'idCardEndDate' => null,
|
||||
'idCardOrg' => null,
|
||||
'corpOrationType' => null,
|
||||
'idImageFront' => null,
|
||||
'idImageBack' => null,
|
||||
'faceImage' => null,
|
||||
'bankNo' => 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 = [
|
||||
'memberName' => 'memberName',
|
||||
'idCardNo' => 'idCardNo',
|
||||
'idCardType' => 'idCardType',
|
||||
'mobile' => 'mobile',
|
||||
'sex' => 'sex',
|
||||
'address' => 'address',
|
||||
'idCardBeginDate' => 'idCardBeginDate',
|
||||
'idCardEndDate' => 'idCardEndDate',
|
||||
'idCardOrg' => 'idCardOrg',
|
||||
'corpOrationType' => 'corpOrationType',
|
||||
'idImageFront' => 'idImageFront',
|
||||
'idImageBack' => 'idImageBack',
|
||||
'faceImage' => 'faceImage',
|
||||
'bankNo' => 'bankNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'memberName' => 'setMemberName',
|
||||
'idCardNo' => 'setIdCardNo',
|
||||
'idCardType' => 'setIdCardType',
|
||||
'mobile' => 'setMobile',
|
||||
'sex' => 'setSex',
|
||||
'address' => 'setAddress',
|
||||
'idCardBeginDate' => 'setIdCardBeginDate',
|
||||
'idCardEndDate' => 'setIdCardEndDate',
|
||||
'idCardOrg' => 'setIdCardOrg',
|
||||
'corpOrationType' => 'setCorpOrationType',
|
||||
'idImageFront' => 'setIdImageFront',
|
||||
'idImageBack' => 'setIdImageBack',
|
||||
'faceImage' => 'setFaceImage',
|
||||
'bankNo' => 'setBankNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'memberName' => 'getMemberName',
|
||||
'idCardNo' => 'getIdCardNo',
|
||||
'idCardType' => 'getIdCardType',
|
||||
'mobile' => 'getMobile',
|
||||
'sex' => 'getSex',
|
||||
'address' => 'getAddress',
|
||||
'idCardBeginDate' => 'getIdCardBeginDate',
|
||||
'idCardEndDate' => 'getIdCardEndDate',
|
||||
'idCardOrg' => 'getIdCardOrg',
|
||||
'corpOrationType' => 'getCorpOrationType',
|
||||
'idImageFront' => 'getIdImageFront',
|
||||
'idImageBack' => 'getIdImageBack',
|
||||
'faceImage' => 'getFaceImage',
|
||||
'bankNo' => 'getBankNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['memberName'] = isset($data['memberName']) ? $data['memberName'] : null;
|
||||
$this->container['idCardNo'] = isset($data['idCardNo']) ? $data['idCardNo'] : null;
|
||||
$this->container['idCardType'] = isset($data['idCardType']) ? $data['idCardType'] : null;
|
||||
$this->container['mobile'] = isset($data['mobile']) ? $data['mobile'] : null;
|
||||
$this->container['sex'] = isset($data['sex']) ? $data['sex'] : null;
|
||||
$this->container['address'] = isset($data['address']) ? $data['address'] : null;
|
||||
$this->container['idCardBeginDate'] = isset($data['idCardBeginDate']) ? $data['idCardBeginDate'] : null;
|
||||
$this->container['idCardEndDate'] = isset($data['idCardEndDate']) ? $data['idCardEndDate'] : null;
|
||||
$this->container['idCardOrg'] = isset($data['idCardOrg']) ? $data['idCardOrg'] : null;
|
||||
$this->container['corpOrationType'] = isset($data['corpOrationType']) ? $data['corpOrationType'] : null;
|
||||
$this->container['idImageFront'] = isset($data['idImageFront']) ? $data['idImageFront'] : null;
|
||||
$this->container['idImageBack'] = isset($data['idImageBack']) ? $data['idImageBack'] : null;
|
||||
$this->container['faceImage'] = isset($data['faceImage']) ? $data['faceImage'] : null;
|
||||
$this->container['bankNo'] = isset($data['bankNo']) ? $data['bankNo'] : 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 memberName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMemberName()
|
||||
{
|
||||
return $this->container['memberName'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets memberName
|
||||
*
|
||||
* @param string $memberName 用户姓名<br>真实姓名
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMemberName($memberName)
|
||||
{
|
||||
$this->container['memberName'] = $memberName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets idCardNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getIdCardNo()
|
||||
{
|
||||
return $this->container['idCardNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idCardNo
|
||||
*
|
||||
* @param string $idCardNo 证件号码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setIdCardNo($idCardNo)
|
||||
{
|
||||
$this->container['idCardNo'] = $idCardNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets idCardType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getIdCardType()
|
||||
{
|
||||
return $this->container['idCardType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idCardType
|
||||
*
|
||||
* @param string $idCardType 证件类型<br>可选项如下:<br>ID:身份证
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setIdCardType($idCardType)
|
||||
{
|
||||
$this->container['idCardType'] = $idCardType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets mobile
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMobile()
|
||||
{
|
||||
return $this->container['mobile'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets mobile
|
||||
*
|
||||
* @param string $mobile 手机号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMobile($mobile)
|
||||
{
|
||||
$this->container['mobile'] = $mobile;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets sex
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSex()
|
||||
{
|
||||
return $this->container['sex'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets sex
|
||||
*
|
||||
* @param string $sex 性别<br>可选项如下:<br>MALE:男性<br>FEMALE:女性
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSex($sex)
|
||||
{
|
||||
$this->container['sex'] = $sex;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets address
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAddress()
|
||||
{
|
||||
return $this->container['address'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets address
|
||||
*
|
||||
* @param string $address 通讯地址<br>长度不少于5个汉字,不超过44个汉字。地址需详细包含省(直辖市),市,区(县)及详细地址
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAddress($address)
|
||||
{
|
||||
$this->container['address'] = $address;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets idCardBeginDate
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getIdCardBeginDate()
|
||||
{
|
||||
return $this->container['idCardBeginDate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idCardBeginDate
|
||||
*
|
||||
* @param string $idCardBeginDate 证件起始日期<br>类型为yyyy-MM-dd
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setIdCardBeginDate($idCardBeginDate)
|
||||
{
|
||||
$this->container['idCardBeginDate'] = $idCardBeginDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets idCardEndDate
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getIdCardEndDate()
|
||||
{
|
||||
return $this->container['idCardEndDate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idCardEndDate
|
||||
*
|
||||
* @param string $idCardEndDate 证件截止日期<br>类型为yyyy-MM-dd(如果为长期的话传长期)
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setIdCardEndDate($idCardEndDate)
|
||||
{
|
||||
$this->container['idCardEndDate'] = $idCardEndDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets idCardOrg
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getIdCardOrg()
|
||||
{
|
||||
return $this->container['idCardOrg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idCardOrg
|
||||
*
|
||||
* @param string $idCardOrg 身份证发证机关
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setIdCardOrg($idCardOrg)
|
||||
{
|
||||
$this->container['idCardOrg'] = $idCardOrg;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets corpOrationType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCorpOrationType()
|
||||
{
|
||||
return $this->container['corpOrationType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets corpOrationType
|
||||
*
|
||||
* @param string $corpOrationType 职业类别<br>可选项如下:<br>00:公务员<br>05:服务业从业人员<br>06:农、林、牧、渔生产人员<br>07:工人<br>12:家庭主妇/主夫<br>13:教师<br>14:律师<br>15:医护人员<br>17:学生<br>18:离退休人员<br>19:私营业主<br>20:自由职业者<br>19:私营业主<br>20:自由职业者<br>21:无业人员<br>24:群众团体、社会团队和其他成员组织人员<br>25:事业单位员工<br>26:公司员工<br>30:公司负责人和高管<br>31:事业单位负责人<br>32:金融、财务从业者<br>33:IT技术人员<br>35:科研人员<br>37:文学艺术、体育专业人员<br>38:其他专业技术人员<br>39:网商经营者
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCorpOrationType($corpOrationType)
|
||||
{
|
||||
$this->container['corpOrationType'] = $corpOrationType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets idImageFront
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getIdImageFront()
|
||||
{
|
||||
return $this->container['idImageFront'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idImageFront
|
||||
*
|
||||
* @param string $idImageFront 身份证正面图片地址<br>上传到易宝文件存储后返回的url
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setIdImageFront($idImageFront)
|
||||
{
|
||||
$this->container['idImageFront'] = $idImageFront;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets idImageBack
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getIdImageBack()
|
||||
{
|
||||
return $this->container['idImageBack'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idImageBack
|
||||
*
|
||||
* @param string $idImageBack 身份证反面照地址<br><br>上传到易宝文件存储后返回的url
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setIdImageBack($idImageBack)
|
||||
{
|
||||
$this->container['idImageBack'] = $idImageBack;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets faceImage
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFaceImage()
|
||||
{
|
||||
return $this->container['faceImage'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets faceImage
|
||||
*
|
||||
* @param string $faceImage 人脸图片地址<br>上传到易宝文件存储后返回的url
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setFaceImage($faceImage)
|
||||
{
|
||||
$this->container['faceImage'] = $faceImage;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBankNo()
|
||||
{
|
||||
return $this->container['bankNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankNo
|
||||
*
|
||||
* @param string $bankNo 绑定的一类银行卡号<br><a href=\"../../attachments/access?fileId=U0BjgGgqbA\">《支持的银行》</a>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBankNo($bankNo)
|
||||
{
|
||||
$this->container['bankNo'] = $bankNo;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
167
lib/Service/MWallet/Model/AccountOpenNotifyRequest.php
Normal file
167
lib/Service/MWallet/Model/AccountOpenNotifyRequest.php
Normal file
@@ -0,0 +1,167 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AccountOpenNotifyRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantUserNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $walletUserNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $businessNo;
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo
|
||||
* @return AccountOpenNotifyRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantUserNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantUserNo()
|
||||
{
|
||||
return $this->merchantUserNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantUserNo
|
||||
*
|
||||
* @param string $merchantUserNo
|
||||
* @return AccountOpenNotifyRequest
|
||||
*/
|
||||
public function setMerchantUserNo($merchantUserNo)
|
||||
{
|
||||
$this->merchantUserNo = $merchantUserNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets walletUserNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getWalletUserNo()
|
||||
{
|
||||
return $this->walletUserNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets walletUserNo
|
||||
*
|
||||
* @param string $walletUserNo
|
||||
* @return AccountOpenNotifyRequest
|
||||
*/
|
||||
public function setWalletUserNo($walletUserNo)
|
||||
{
|
||||
$this->walletUserNo = $walletUserNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
*
|
||||
* @param string $notifyUrl
|
||||
* @return AccountOpenNotifyRequest
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return AccountOpenNotifyRequest
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets businessNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessNo()
|
||||
{
|
||||
return $this->businessNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets businessNo
|
||||
*
|
||||
* @param string $businessNo
|
||||
* @return AccountOpenNotifyRequest
|
||||
*/
|
||||
public function setBusinessNo($businessNo)
|
||||
{
|
||||
$this->businessNo = $businessNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'account_open_notify';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\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 AccountOpenNotifyRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AccountOpenNotifyRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountOpenNotifyRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountOpenNotifyRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'MWallet';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/m-wallet/account/open/notify';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AccountOpenNotifyRequest $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->getMerchantUserNo() != null){
|
||||
$internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string'));
|
||||
}
|
||||
if($request->getWalletUserNo() != null){
|
||||
$internalRequest->addParameter('walletUserNo', ObjectSerializer::sanitizeForSerialization($request->getWalletUserNo(), 'string'));
|
||||
}
|
||||
if($request->getNotifyUrl() != null){
|
||||
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'notify-url'));
|
||||
}
|
||||
if($request->getRequestNo() != null){
|
||||
$internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
|
||||
}
|
||||
if($request->getBusinessNo() != null){
|
||||
$internalRequest->addParameter('businessNo', ObjectSerializer::sanitizeForSerialization($request->getBusinessNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AccountOpenNotifyRequestMarshaller::__init();
|
||||
34
lib/Service/MWallet/Model/AccountOpenNotifyResponse.php
Normal file
34
lib/Service/MWallet/Model/AccountOpenNotifyResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AccountOpenNotifyResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var OpenSuccessNotifyResponseDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\MWallet\Model\OpenSuccessNotifyResponseDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param OpenSuccessNotifyResponseDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return OpenSuccessNotifyResponseDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AccountOpenNotifyResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AccountOpenNotifyResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountOpenNotifyResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountOpenNotifyResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountOpenNotifyResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AccountOpenNotifyResponse();
|
||||
}
|
||||
}
|
||||
|
||||
AccountOpenNotifyResponseUnMarshaller::__init();
|
||||
217
lib/Service/MWallet/Model/AccountOpenRequest.php
Normal file
217
lib/Service/MWallet/Model/AccountOpenRequest.php
Normal file
@@ -0,0 +1,217 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AccountOpenRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $name;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $certificateType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $certificateNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantUserNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $mobile;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* Gets name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name
|
||||
*
|
||||
* @param string $name
|
||||
* @return AccountOpenRequest
|
||||
*/
|
||||
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 AccountOpenRequest
|
||||
*/
|
||||
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 AccountOpenRequest
|
||||
*/
|
||||
public function setCertificateNo($certificateNo)
|
||||
{
|
||||
$this->certificateNo = $certificateNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return AccountOpenRequest
|
||||
*/
|
||||
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 AccountOpenRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantUserNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantUserNo()
|
||||
{
|
||||
return $this->merchantUserNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantUserNo
|
||||
*
|
||||
* @param string $merchantUserNo
|
||||
* @return AccountOpenRequest
|
||||
*/
|
||||
public function setMerchantUserNo($merchantUserNo)
|
||||
{
|
||||
$this->merchantUserNo = $merchantUserNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets mobile
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMobile()
|
||||
{
|
||||
return $this->mobile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets mobile
|
||||
*
|
||||
* @param string $mobile
|
||||
* @return AccountOpenRequest
|
||||
*/
|
||||
public function setMobile($mobile)
|
||||
{
|
||||
$this->mobile = $mobile;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return AccountOpenRequest
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'accountOpen';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
101
lib/Service/MWallet/Model/AccountOpenRequestMarshaller.php
Normal file
101
lib/Service/MWallet/Model/AccountOpenRequestMarshaller.php
Normal file
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\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 AccountOpenRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AccountOpenRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountOpenRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountOpenRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'MWallet';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/m-wallet/account/open';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AccountOpenRequest $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->getName() != null){
|
||||
$internalRequest->addParameter('name', ObjectSerializer::sanitizeForSerialization($request->getName(), 'string'));
|
||||
}
|
||||
if($request->getCertificateType() != null){
|
||||
$internalRequest->addParameter('certificateType', ObjectSerializer::sanitizeForSerialization($request->getCertificateType(), 'string'));
|
||||
}
|
||||
if($request->getCertificateNo() != null){
|
||||
$internalRequest->addParameter('certificateNo', ObjectSerializer::sanitizeForSerialization($request->getCertificateNo(), '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'));
|
||||
}
|
||||
if($request->getMerchantUserNo() != null){
|
||||
$internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string'));
|
||||
}
|
||||
if($request->getMobile() != null){
|
||||
$internalRequest->addParameter('mobile', ObjectSerializer::sanitizeForSerialization($request->getMobile(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AccountOpenRequestMarshaller::__init();
|
||||
34
lib/Service/MWallet/Model/AccountOpenResponse.php
Normal file
34
lib/Service/MWallet/Model/AccountOpenResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AccountOpenResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var WalletRequestRecordResponseDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\MWallet\Model\WalletRequestRecordResponseDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param WalletRequestRecordResponseDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WalletRequestRecordResponseDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AccountOpenResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AccountOpenResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountOpenResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountOpenResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountOpenResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AccountOpenResponse();
|
||||
}
|
||||
}
|
||||
|
||||
AccountOpenResponseUnMarshaller::__init();
|
||||
217
lib/Service/MWallet/Model/AccountOpenV10Request.php
Normal file
217
lib/Service/MWallet/Model/AccountOpenV10Request.php
Normal file
@@ -0,0 +1,217 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AccountOpenV10Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $name;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $certificateType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $certificateNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantUserNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $mobile;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* Gets name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets name
|
||||
*
|
||||
* @param string $name
|
||||
* @return AccountOpenV10Request
|
||||
*/
|
||||
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 AccountOpenV10Request
|
||||
*/
|
||||
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 AccountOpenV10Request
|
||||
*/
|
||||
public function setCertificateNo($certificateNo)
|
||||
{
|
||||
$this->certificateNo = $certificateNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return AccountOpenV10Request
|
||||
*/
|
||||
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 AccountOpenV10Request
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantUserNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantUserNo()
|
||||
{
|
||||
return $this->merchantUserNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantUserNo
|
||||
*
|
||||
* @param string $merchantUserNo
|
||||
* @return AccountOpenV10Request
|
||||
*/
|
||||
public function setMerchantUserNo($merchantUserNo)
|
||||
{
|
||||
$this->merchantUserNo = $merchantUserNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets mobile
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMobile()
|
||||
{
|
||||
return $this->mobile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets mobile
|
||||
*
|
||||
* @param string $mobile
|
||||
* @return AccountOpenV10Request
|
||||
*/
|
||||
public function setMobile($mobile)
|
||||
{
|
||||
$this->mobile = $mobile;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return AccountOpenV10Request
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'account_open_v1_0';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
101
lib/Service/MWallet/Model/AccountOpenV10RequestMarshaller.php
Normal file
101
lib/Service/MWallet/Model/AccountOpenV10RequestMarshaller.php
Normal file
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\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 AccountOpenV10RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AccountOpenV10RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountOpenV10RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountOpenV10RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'MWallet';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/m-wallet/account/open';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AccountOpenV10Request $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->getName() != null){
|
||||
$internalRequest->addParameter('name', ObjectSerializer::sanitizeForSerialization($request->getName(), 'string'));
|
||||
}
|
||||
if($request->getCertificateType() != null){
|
||||
$internalRequest->addParameter('certificateType', ObjectSerializer::sanitizeForSerialization($request->getCertificateType(), 'string'));
|
||||
}
|
||||
if($request->getCertificateNo() != null){
|
||||
$internalRequest->addParameter('certificateNo', ObjectSerializer::sanitizeForSerialization($request->getCertificateNo(), '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'));
|
||||
}
|
||||
if($request->getMerchantUserNo() != null){
|
||||
$internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string'));
|
||||
}
|
||||
if($request->getMobile() != null){
|
||||
$internalRequest->addParameter('mobile', ObjectSerializer::sanitizeForSerialization($request->getMobile(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AccountOpenV10RequestMarshaller::__init();
|
||||
34
lib/Service/MWallet/Model/AccountOpenV10Response.php
Normal file
34
lib/Service/MWallet/Model/AccountOpenV10Response.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AccountOpenV10Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var WalletRequestRecordResponseDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\MWallet\Model\WalletRequestRecordResponseDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param WalletRequestRecordResponseDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WalletRequestRecordResponseDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AccountOpenV10ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AccountOpenV10ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountOpenV10ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountOpenV10ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountOpenV10Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AccountOpenV10Response();
|
||||
}
|
||||
}
|
||||
|
||||
AccountOpenV10ResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,483 @@
|
||||
<?php
|
||||
/**
|
||||
* AccountQueryBalanceQueryAccountInfoDTOResult
|
||||
*
|
||||
* 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\MWallet\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* AccountQueryBalanceQueryAccountInfoDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class AccountQueryBalanceQueryAccountInfoDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'AccountQueryBalanceQueryAccountInfoDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'elecAccount' => 'string',
|
||||
'accountStatus' => 'string',
|
||||
'balance' => 'float',
|
||||
'bankAccountNo' => 'string',
|
||||
'bankAccountLevel' => 'string',
|
||||
'mobile' => 'string',
|
||||
'accountType' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'elecAccount' => null,
|
||||
'accountStatus' => null,
|
||||
'balance' => null,
|
||||
'bankAccountNo' => null,
|
||||
'bankAccountLevel' => null,
|
||||
'mobile' => null,
|
||||
'accountType' => 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 = [
|
||||
'elecAccount' => 'elecAccount',
|
||||
'accountStatus' => 'accountStatus',
|
||||
'balance' => 'balance',
|
||||
'bankAccountNo' => 'bankAccountNo',
|
||||
'bankAccountLevel' => 'bankAccountLevel',
|
||||
'mobile' => 'mobile',
|
||||
'accountType' => 'accountType'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'elecAccount' => 'setElecAccount',
|
||||
'accountStatus' => 'setAccountStatus',
|
||||
'balance' => 'setBalance',
|
||||
'bankAccountNo' => 'setBankAccountNo',
|
||||
'bankAccountLevel' => 'setBankAccountLevel',
|
||||
'mobile' => 'setMobile',
|
||||
'accountType' => 'setAccountType'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'elecAccount' => 'getElecAccount',
|
||||
'accountStatus' => 'getAccountStatus',
|
||||
'balance' => 'getBalance',
|
||||
'bankAccountNo' => 'getBankAccountNo',
|
||||
'bankAccountLevel' => 'getBankAccountLevel',
|
||||
'mobile' => 'getMobile',
|
||||
'accountType' => 'getAccountType'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['elecAccount'] = isset($data['elecAccount']) ? $data['elecAccount'] : null;
|
||||
$this->container['accountStatus'] = isset($data['accountStatus']) ? $data['accountStatus'] : null;
|
||||
$this->container['balance'] = isset($data['balance']) ? $data['balance'] : null;
|
||||
$this->container['bankAccountNo'] = isset($data['bankAccountNo']) ? $data['bankAccountNo'] : null;
|
||||
$this->container['bankAccountLevel'] = isset($data['bankAccountLevel']) ? $data['bankAccountLevel'] : null;
|
||||
$this->container['mobile'] = isset($data['mobile']) ? $data['mobile'] : null;
|
||||
$this->container['accountType'] = isset($data['accountType']) ? $data['accountType'] : 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 elecAccount
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getElecAccount()
|
||||
{
|
||||
return $this->container['elecAccount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets elecAccount
|
||||
*
|
||||
* @param string $elecAccount 账户账号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setElecAccount($elecAccount)
|
||||
{
|
||||
$this->container['elecAccount'] = $elecAccount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets accountStatus
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountStatus()
|
||||
{
|
||||
return $this->container['accountStatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets accountStatus
|
||||
*
|
||||
* @param string $accountStatus 账户状态
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAccountStatus($accountStatus)
|
||||
{
|
||||
$this->container['accountStatus'] = $accountStatus;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankAccountNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBankAccountNo()
|
||||
{
|
||||
return $this->container['bankAccountNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankAccountNo
|
||||
*
|
||||
* @param string $bankAccountNo 银行绑定的一类卡号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBankAccountNo($bankAccountNo)
|
||||
{
|
||||
$this->container['bankAccountNo'] = $bankAccountNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankAccountLevel
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBankAccountLevel()
|
||||
{
|
||||
return $this->container['bankAccountLevel'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankAccountLevel
|
||||
*
|
||||
* @param string $bankAccountLevel 账户等级(一类户,二类户,三类户)
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBankAccountLevel($bankAccountLevel)
|
||||
{
|
||||
$this->container['bankAccountLevel'] = $bankAccountLevel;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets mobile
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMobile()
|
||||
{
|
||||
return $this->container['mobile'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets mobile
|
||||
*
|
||||
* @param string $mobile 手机号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMobile($mobile)
|
||||
{
|
||||
$this->container['mobile'] = $mobile;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets accountType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountType()
|
||||
{
|
||||
return $this->container['accountType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets accountType
|
||||
*
|
||||
* @param string $accountType 账户类型
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAccountType($accountType)
|
||||
{
|
||||
$this->container['accountType'] = $accountType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* 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,362 @@
|
||||
<?php
|
||||
/**
|
||||
* AccountQueryBalanceQueryBalanceResponseDTOResult
|
||||
*
|
||||
* 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\MWallet\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* AccountQueryBalanceQueryBalanceResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class AccountQueryBalanceQueryBalanceResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'AccountQueryBalanceQueryBalanceResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'returnCode' => 'string',
|
||||
'returnMsg' => 'string',
|
||||
'queryAccountInfoDTOList' => '\Yeepay\Yop\Sdk\Service\MWallet\Model\AccountQueryBalanceQueryAccountInfoDTOResult[]'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'returnCode' => null,
|
||||
'returnMsg' => null,
|
||||
'queryAccountInfoDTOList' => 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',
|
||||
'queryAccountInfoDTOList' => 'queryAccountInfoDTOList'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'returnCode' => 'setReturnCode',
|
||||
'returnMsg' => 'setReturnMsg',
|
||||
'queryAccountInfoDTOList' => 'setQueryAccountInfoDTOList'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'returnCode' => 'getReturnCode',
|
||||
'returnMsg' => 'getReturnMsg',
|
||||
'queryAccountInfoDTOList' => 'getQueryAccountInfoDTOList'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['queryAccountInfoDTOList'] = isset($data['queryAccountInfoDTOList']) ? $data['queryAccountInfoDTOList'] : 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 queryAccountInfoDTOList
|
||||
*
|
||||
* @return \Yeepay\Yop\Sdk\Service\MWallet\Model\AccountQueryBalanceQueryAccountInfoDTOResult[]
|
||||
*/
|
||||
public function getQueryAccountInfoDTOList()
|
||||
{
|
||||
return $this->container['queryAccountInfoDTOList'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets queryAccountInfoDTOList
|
||||
*
|
||||
* @param \Yeepay\Yop\Sdk\Service\MWallet\Model\AccountQueryBalanceQueryAccountInfoDTOResult[] $queryAccountInfoDTOList 账户信息集合
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setQueryAccountInfoDTOList($queryAccountInfoDTOList)
|
||||
{
|
||||
$this->container['queryAccountInfoDTOList'] = $queryAccountInfoDTOList;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
142
lib/Service/MWallet/Model/AccountQueryBalanceRequest.php
Normal file
142
lib/Service/MWallet/Model/AccountQueryBalanceRequest.php
Normal file
@@ -0,0 +1,142 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AccountQueryBalanceRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantMemberNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $accountType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $elecAccount;
|
||||
|
||||
/**
|
||||
* Gets merchantMemberNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantMemberNo()
|
||||
{
|
||||
return $this->merchantMemberNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantMemberNo
|
||||
*
|
||||
* @param string $merchantMemberNo
|
||||
* @return AccountQueryBalanceRequest
|
||||
*/
|
||||
public function setMerchantMemberNo($merchantMemberNo)
|
||||
{
|
||||
$this->merchantMemberNo = $merchantMemberNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return AccountQueryBalanceRequest
|
||||
*/
|
||||
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 AccountQueryBalanceRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets accountType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountType()
|
||||
{
|
||||
return $this->accountType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets accountType
|
||||
*
|
||||
* @param string $accountType
|
||||
* @return AccountQueryBalanceRequest
|
||||
*/
|
||||
public function setAccountType($accountType)
|
||||
{
|
||||
$this->accountType = $accountType;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets elecAccount
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getElecAccount()
|
||||
{
|
||||
return $this->elecAccount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets elecAccount
|
||||
*
|
||||
* @param string $elecAccount
|
||||
* @return AccountQueryBalanceRequest
|
||||
*/
|
||||
public function setElecAccount($elecAccount)
|
||||
{
|
||||
$this->elecAccount = $elecAccount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'accountQueryBalance';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\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 AccountQueryBalanceRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AccountQueryBalanceRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountQueryBalanceRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountQueryBalanceRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'MWallet';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/m-wallet/account/query-balance';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AccountQueryBalanceRequest $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->getMerchantMemberNo() != null){
|
||||
$internalRequest->addParameter('merchantMemberNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantMemberNo(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getAccountType() != null){
|
||||
$internalRequest->addParameter('accountType', ObjectSerializer::sanitizeForSerialization($request->getAccountType(), 'string'));
|
||||
}
|
||||
if($request->getElecAccount() != null){
|
||||
$internalRequest->addParameter('elecAccount', ObjectSerializer::sanitizeForSerialization($request->getElecAccount(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AccountQueryBalanceRequestMarshaller::__init();
|
||||
34
lib/Service/MWallet/Model/AccountQueryBalanceResponse.php
Normal file
34
lib/Service/MWallet/Model/AccountQueryBalanceResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AccountQueryBalanceResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var AccountQueryBalanceQueryBalanceResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\MWallet\Model\AccountQueryBalanceQueryBalanceResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param AccountQueryBalanceQueryBalanceResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountQueryBalanceQueryBalanceResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AccountQueryBalanceResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AccountQueryBalanceResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountQueryBalanceResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountQueryBalanceResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountQueryBalanceResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AccountQueryBalanceResponse();
|
||||
}
|
||||
}
|
||||
|
||||
AccountQueryBalanceResponseUnMarshaller::__init();
|
||||
92
lib/Service/MWallet/Model/AccountQueryQuotaRequest.php
Normal file
92
lib/Service/MWallet/Model/AccountQueryQuotaRequest.php
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AccountQueryQuotaRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantUserNo;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return AccountQueryQuotaRequest
|
||||
*/
|
||||
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 AccountQueryQuotaRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantUserNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantUserNo()
|
||||
{
|
||||
return $this->merchantUserNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantUserNo
|
||||
*
|
||||
* @param string $merchantUserNo
|
||||
* @return AccountQueryQuotaRequest
|
||||
*/
|
||||
public function setMerchantUserNo($merchantUserNo)
|
||||
{
|
||||
$this->merchantUserNo = $merchantUserNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'account_query_quota';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\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 AccountQueryQuotaRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AccountQueryQuotaRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountQueryQuotaRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountQueryQuotaRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'MWallet';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/m-wallet/account/query-quota';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AccountQueryQuotaRequest $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->getMerchantUserNo() != null){
|
||||
$internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AccountQueryQuotaRequestMarshaller::__init();
|
||||
34
lib/Service/MWallet/Model/AccountQueryQuotaResponse.php
Normal file
34
lib/Service/MWallet/Model/AccountQueryQuotaResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AccountQueryQuotaResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var YopQueryMemberBalanceQuotaRespDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\MWallet\Model\YopQueryMemberBalanceQuotaRespDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param YopQueryMemberBalanceQuotaRespDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return YopQueryMemberBalanceQuotaRespDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AccountQueryQuotaResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AccountQueryQuotaResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountQueryQuotaResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountQueryQuotaResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountQueryQuotaResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AccountQueryQuotaResponse();
|
||||
}
|
||||
}
|
||||
|
||||
AccountQueryQuotaResponseUnMarshaller::__init();
|
||||
92
lib/Service/MWallet/Model/AccountQueryRequest.php
Normal file
92
lib/Service/MWallet/Model/AccountQueryRequest.php
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AccountQueryRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantUserNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* Gets merchantUserNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantUserNo()
|
||||
{
|
||||
return $this->merchantUserNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantUserNo
|
||||
*
|
||||
* @param string $merchantUserNo
|
||||
* @return AccountQueryRequest
|
||||
*/
|
||||
public function setMerchantUserNo($merchantUserNo)
|
||||
{
|
||||
$this->merchantUserNo = $merchantUserNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo
|
||||
* @return AccountQueryRequest
|
||||
*/
|
||||
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 AccountQueryRequest
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'accountQuery';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
86
lib/Service/MWallet/Model/AccountQueryRequestMarshaller.php
Normal file
86
lib/Service/MWallet/Model/AccountQueryRequestMarshaller.php
Normal file
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\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 AccountQueryRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AccountQueryRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountQueryRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountQueryRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'MWallet';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/m-wallet/account/query';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AccountQueryRequest $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->getMerchantUserNo() != null){
|
||||
$internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AccountQueryRequestMarshaller::__init();
|
||||
34
lib/Service/MWallet/Model/AccountQueryResponse.php
Normal file
34
lib/Service/MWallet/Model/AccountQueryResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AccountQueryResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var WalletMemberResponseDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\MWallet\Model\WalletMemberResponseDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param WalletMemberResponseDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WalletMemberResponseDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AccountQueryResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AccountQueryResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountQueryResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountQueryResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountQueryResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AccountQueryResponse();
|
||||
}
|
||||
}
|
||||
|
||||
AccountQueryResponseUnMarshaller::__init();
|
||||
92
lib/Service/MWallet/Model/AccountQueryV10Request.php
Normal file
92
lib/Service/MWallet/Model/AccountQueryV10Request.php
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AccountQueryV10Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantUserNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* Gets merchantUserNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantUserNo()
|
||||
{
|
||||
return $this->merchantUserNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantUserNo
|
||||
*
|
||||
* @param string $merchantUserNo
|
||||
* @return AccountQueryV10Request
|
||||
*/
|
||||
public function setMerchantUserNo($merchantUserNo)
|
||||
{
|
||||
$this->merchantUserNo = $merchantUserNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo
|
||||
* @return AccountQueryV10Request
|
||||
*/
|
||||
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 AccountQueryV10Request
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'account_query_v1_0';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\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 AccountQueryV10RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AccountQueryV10RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountQueryV10RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountQueryV10RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'MWallet';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/m-wallet/account/query';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AccountQueryV10Request $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->getMerchantUserNo() != null){
|
||||
$internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AccountQueryV10RequestMarshaller::__init();
|
||||
34
lib/Service/MWallet/Model/AccountQueryV10Response.php
Normal file
34
lib/Service/MWallet/Model/AccountQueryV10Response.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AccountQueryV10Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var WalletMemberResponseDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\MWallet\Model\WalletMemberResponseDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param WalletMemberResponseDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return WalletMemberResponseDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AccountQueryV10ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AccountQueryV10ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AccountQueryV10ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountQueryV10ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AccountQueryV10Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AccountQueryV10Response();
|
||||
}
|
||||
}
|
||||
|
||||
AccountQueryV10ResponseUnMarshaller::__init();
|
||||
167
lib/Service/MWallet/Model/AgreementPaymentCancelRequest.php
Normal file
167
lib/Service/MWallet/Model/AgreementPaymentCancelRequest.php
Normal file
@@ -0,0 +1,167 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AgreementPaymentCancelRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $operateReason;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantUserNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* Gets operateReason
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOperateReason()
|
||||
{
|
||||
return $this->operateReason;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets operateReason
|
||||
*
|
||||
* @param string $operateReason
|
||||
* @return AgreementPaymentCancelRequest
|
||||
*/
|
||||
public function setOperateReason($operateReason)
|
||||
{
|
||||
$this->operateReason = $operateReason;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
*
|
||||
* @param string $notifyUrl
|
||||
* @return AgreementPaymentCancelRequest
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return AgreementPaymentCancelRequest
|
||||
*/
|
||||
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 AgreementPaymentCancelRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantUserNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantUserNo()
|
||||
{
|
||||
return $this->merchantUserNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantUserNo
|
||||
*
|
||||
* @param string $merchantUserNo
|
||||
* @return AgreementPaymentCancelRequest
|
||||
*/
|
||||
public function setMerchantUserNo($merchantUserNo)
|
||||
{
|
||||
$this->merchantUserNo = $merchantUserNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return AgreementPaymentCancelRequest
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'agreementPaymentCancel';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\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 AgreementPaymentCancelRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AgreementPaymentCancelRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AgreementPaymentCancelRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentCancelRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'MWallet';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/m-wallet/agreement/payment-cancel';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AgreementPaymentCancelRequest $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->getOperateReason() != null){
|
||||
$internalRequest->addParameter('operateReason', ObjectSerializer::sanitizeForSerialization($request->getOperateReason(), 'string'));
|
||||
}
|
||||
if($request->getNotifyUrl() != null){
|
||||
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), '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'));
|
||||
}
|
||||
if($request->getMerchantUserNo() != null){
|
||||
$internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AgreementPaymentCancelRequestMarshaller::__init();
|
||||
34
lib/Service/MWallet/Model/AgreementPaymentCancelResponse.php
Normal file
34
lib/Service/MWallet/Model/AgreementPaymentCancelResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AgreementPaymentCancelResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var FreeSecretCancelResponseDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\MWallet\Model\FreeSecretCancelResponseDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param FreeSecretCancelResponseDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return FreeSecretCancelResponseDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AgreementPaymentCancelResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AgreementPaymentCancelResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AgreementPaymentCancelResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentCancelResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentCancelResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AgreementPaymentCancelResponse();
|
||||
}
|
||||
}
|
||||
|
||||
AgreementPaymentCancelResponseUnMarshaller::__init();
|
||||
167
lib/Service/MWallet/Model/AgreementPaymentCancelV10Request.php
Normal file
167
lib/Service/MWallet/Model/AgreementPaymentCancelV10Request.php
Normal file
@@ -0,0 +1,167 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AgreementPaymentCancelV10Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $operateReason;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantUserNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* Gets operateReason
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOperateReason()
|
||||
{
|
||||
return $this->operateReason;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets operateReason
|
||||
*
|
||||
* @param string $operateReason
|
||||
* @return AgreementPaymentCancelV10Request
|
||||
*/
|
||||
public function setOperateReason($operateReason)
|
||||
{
|
||||
$this->operateReason = $operateReason;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
*
|
||||
* @param string $notifyUrl
|
||||
* @return AgreementPaymentCancelV10Request
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return AgreementPaymentCancelV10Request
|
||||
*/
|
||||
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 AgreementPaymentCancelV10Request
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantUserNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantUserNo()
|
||||
{
|
||||
return $this->merchantUserNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantUserNo
|
||||
*
|
||||
* @param string $merchantUserNo
|
||||
* @return AgreementPaymentCancelV10Request
|
||||
*/
|
||||
public function setMerchantUserNo($merchantUserNo)
|
||||
{
|
||||
$this->merchantUserNo = $merchantUserNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return AgreementPaymentCancelV10Request
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'agreement_payment_cancel_v1_0';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\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 AgreementPaymentCancelV10RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AgreementPaymentCancelV10RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AgreementPaymentCancelV10RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentCancelV10RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'MWallet';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/m-wallet/agreement/payment-cancel';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AgreementPaymentCancelV10Request $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->getOperateReason() != null){
|
||||
$internalRequest->addParameter('operateReason', ObjectSerializer::sanitizeForSerialization($request->getOperateReason(), 'string'));
|
||||
}
|
||||
if($request->getNotifyUrl() != null){
|
||||
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), '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'));
|
||||
}
|
||||
if($request->getMerchantUserNo() != null){
|
||||
$internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AgreementPaymentCancelV10RequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AgreementPaymentCancelV10Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var FreeSecretCancelResponseDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\MWallet\Model\FreeSecretCancelResponseDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param FreeSecretCancelResponseDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return FreeSecretCancelResponseDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AgreementPaymentCancelV10ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AgreementPaymentCancelV10ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AgreementPaymentCancelV10ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentCancelV10ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentCancelV10Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AgreementPaymentCancelV10Response();
|
||||
}
|
||||
}
|
||||
|
||||
AgreementPaymentCancelV10ResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,192 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AgreementPaymentCancelWeb3V10Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantUserNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $operateReason;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $operatedMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* Gets merchantUserNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantUserNo()
|
||||
{
|
||||
return $this->merchantUserNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantUserNo
|
||||
*
|
||||
* @param string $merchantUserNo
|
||||
* @return AgreementPaymentCancelWeb3V10Request
|
||||
*/
|
||||
public function setMerchantUserNo($merchantUserNo)
|
||||
{
|
||||
$this->merchantUserNo = $merchantUserNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets operateReason
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOperateReason()
|
||||
{
|
||||
return $this->operateReason;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets operateReason
|
||||
*
|
||||
* @param string $operateReason
|
||||
* @return AgreementPaymentCancelWeb3V10Request
|
||||
*/
|
||||
public function setOperateReason($operateReason)
|
||||
{
|
||||
$this->operateReason = $operateReason;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets operatedMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOperatedMerchantNo()
|
||||
{
|
||||
return $this->operatedMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets operatedMerchantNo
|
||||
*
|
||||
* @param string $operatedMerchantNo
|
||||
* @return AgreementPaymentCancelWeb3V10Request
|
||||
*/
|
||||
public function setOperatedMerchantNo($operatedMerchantNo)
|
||||
{
|
||||
$this->operatedMerchantNo = $operatedMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
*
|
||||
* @param string $notifyUrl
|
||||
* @return AgreementPaymentCancelWeb3V10Request
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return AgreementPaymentCancelWeb3V10Request
|
||||
*/
|
||||
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 AgreementPaymentCancelWeb3V10Request
|
||||
*/
|
||||
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 AgreementPaymentCancelWeb3V10Request
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'agreement_payment_cancel_web3_v1_0';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\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 AgreementPaymentCancelWeb3V10RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AgreementPaymentCancelWeb3V10RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AgreementPaymentCancelWeb3V10RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentCancelWeb3V10RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'MWallet';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/m-wallet/web3/agreement/payment-cancel';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AgreementPaymentCancelWeb3V10Request $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->getMerchantUserNo() != null){
|
||||
$internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string'));
|
||||
}
|
||||
if($request->getOperateReason() != null){
|
||||
$internalRequest->addParameter('operateReason', ObjectSerializer::sanitizeForSerialization($request->getOperateReason(), 'string'));
|
||||
}
|
||||
if($request->getOperatedMerchantNo() != null){
|
||||
$internalRequest->addParameter('operatedMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getOperatedMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getNotifyUrl() != null){
|
||||
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->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;
|
||||
}
|
||||
}
|
||||
AgreementPaymentCancelWeb3V10RequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AgreementPaymentCancelWeb3V10Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var FreeSecretCancelRespDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\MWallet\Model\FreeSecretCancelRespDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param FreeSecretCancelRespDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return FreeSecretCancelRespDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AgreementPaymentCancelWeb3V10ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AgreementPaymentCancelWeb3V10ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AgreementPaymentCancelWeb3V10ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentCancelWeb3V10ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentCancelWeb3V10Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AgreementPaymentCancelWeb3V10Response();
|
||||
}
|
||||
}
|
||||
|
||||
AgreementPaymentCancelWeb3V10ResponseUnMarshaller::__init();
|
||||
192
lib/Service/MWallet/Model/AgreementPaymentNotifyWeb3Request.php
Normal file
192
lib/Service/MWallet/Model/AgreementPaymentNotifyWeb3Request.php
Normal file
@@ -0,0 +1,192 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AgreementPaymentNotifyWeb3Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantUserNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $operateTime;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $operateType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $endTime;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* Gets merchantUserNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantUserNo()
|
||||
{
|
||||
return $this->merchantUserNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantUserNo
|
||||
*
|
||||
* @param string $merchantUserNo
|
||||
* @return AgreementPaymentNotifyWeb3Request
|
||||
*/
|
||||
public function setMerchantUserNo($merchantUserNo)
|
||||
{
|
||||
$this->merchantUserNo = $merchantUserNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets operateTime
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOperateTime()
|
||||
{
|
||||
return $this->operateTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets operateTime
|
||||
*
|
||||
* @param string $operateTime
|
||||
* @return AgreementPaymentNotifyWeb3Request
|
||||
*/
|
||||
public function setOperateTime($operateTime)
|
||||
{
|
||||
$this->operateTime = $operateTime;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets operateType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOperateType()
|
||||
{
|
||||
return $this->operateType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets operateType
|
||||
*
|
||||
* @param string $operateType
|
||||
* @return AgreementPaymentNotifyWeb3Request
|
||||
*/
|
||||
public function setOperateType($operateType)
|
||||
{
|
||||
$this->operateType = $operateType;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
*
|
||||
* @param string $notifyUrl
|
||||
* @return AgreementPaymentNotifyWeb3Request
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets endTime
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getEndTime()
|
||||
{
|
||||
return $this->endTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets endTime
|
||||
*
|
||||
* @param string $endTime
|
||||
* @return AgreementPaymentNotifyWeb3Request
|
||||
*/
|
||||
public function setEndTime($endTime)
|
||||
{
|
||||
$this->endTime = $endTime;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return AgreementPaymentNotifyWeb3Request
|
||||
*/
|
||||
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 AgreementPaymentNotifyWeb3Request
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'agreement_payment_notify_web3';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\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 AgreementPaymentNotifyWeb3RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AgreementPaymentNotifyWeb3RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AgreementPaymentNotifyWeb3RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentNotifyWeb3RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'MWallet';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/m-wallet/web3/agreement/notify';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AgreementPaymentNotifyWeb3Request $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->getMerchantUserNo() != null){
|
||||
$internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string'));
|
||||
}
|
||||
if($request->getOperateTime() != null){
|
||||
$internalRequest->addParameter('operateTime', ObjectSerializer::sanitizeForSerialization($request->getOperateTime(), 'string'));
|
||||
}
|
||||
if($request->getOperateType() != null){
|
||||
$internalRequest->addParameter('operateType', ObjectSerializer::sanitizeForSerialization($request->getOperateType(), 'string', 'enum'));
|
||||
}
|
||||
if($request->getNotifyUrl() != null){
|
||||
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string'));
|
||||
}
|
||||
if($request->getEndTime() != null){
|
||||
$internalRequest->addParameter('endTime', ObjectSerializer::sanitizeForSerialization($request->getEndTime(), '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;
|
||||
}
|
||||
}
|
||||
AgreementPaymentNotifyWeb3RequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AgreementPaymentNotifyWeb3Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var FreeSecretNotifyRespDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\MWallet\Model\FreeSecretNotifyRespDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param FreeSecretNotifyRespDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return FreeSecretNotifyRespDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AgreementPaymentNotifyWeb3ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AgreementPaymentNotifyWeb3ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AgreementPaymentNotifyWeb3ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentNotifyWeb3ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentNotifyWeb3Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AgreementPaymentNotifyWeb3Response();
|
||||
}
|
||||
}
|
||||
|
||||
AgreementPaymentNotifyWeb3ResponseUnMarshaller::__init();
|
||||
92
lib/Service/MWallet/Model/AgreementPaymentQueryRequest.php
Normal file
92
lib/Service/MWallet/Model/AgreementPaymentQueryRequest.php
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AgreementPaymentQueryRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantUserNo;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return AgreementPaymentQueryRequest
|
||||
*/
|
||||
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 AgreementPaymentQueryRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantUserNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantUserNo()
|
||||
{
|
||||
return $this->merchantUserNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantUserNo
|
||||
*
|
||||
* @param string $merchantUserNo
|
||||
* @return AgreementPaymentQueryRequest
|
||||
*/
|
||||
public function setMerchantUserNo($merchantUserNo)
|
||||
{
|
||||
$this->merchantUserNo = $merchantUserNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'agreement_payment_query';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\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 AgreementPaymentQueryRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AgreementPaymentQueryRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AgreementPaymentQueryRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentQueryRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'MWallet';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/m-wallet/agreement/payment-query';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AgreementPaymentQueryRequest $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->getMerchantUserNo() != null){
|
||||
$internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AgreementPaymentQueryRequestMarshaller::__init();
|
||||
34
lib/Service/MWallet/Model/AgreementPaymentQueryResponse.php
Normal file
34
lib/Service/MWallet/Model/AgreementPaymentQueryResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AgreementPaymentQueryResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var FreeSecretQueryResponseDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\MWallet\Model\FreeSecretQueryResponseDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param FreeSecretQueryResponseDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return FreeSecretQueryResponseDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AgreementPaymentQueryResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AgreementPaymentQueryResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AgreementPaymentQueryResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentQueryResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentQueryResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AgreementPaymentQueryResponse();
|
||||
}
|
||||
}
|
||||
|
||||
AgreementPaymentQueryResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AgreementPaymentQueryWeb3V10Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantUserNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $operatedMerchantNo;
|
||||
|
||||
/**
|
||||
* Gets merchantUserNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantUserNo()
|
||||
{
|
||||
return $this->merchantUserNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantUserNo
|
||||
*
|
||||
* @param string $merchantUserNo
|
||||
* @return AgreementPaymentQueryWeb3V10Request
|
||||
*/
|
||||
public function setMerchantUserNo($merchantUserNo)
|
||||
{
|
||||
$this->merchantUserNo = $merchantUserNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return AgreementPaymentQueryWeb3V10Request
|
||||
*/
|
||||
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 AgreementPaymentQueryWeb3V10Request
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets operatedMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOperatedMerchantNo()
|
||||
{
|
||||
return $this->operatedMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets operatedMerchantNo
|
||||
*
|
||||
* @param string $operatedMerchantNo
|
||||
* @return AgreementPaymentQueryWeb3V10Request
|
||||
*/
|
||||
public function setOperatedMerchantNo($operatedMerchantNo)
|
||||
{
|
||||
$this->operatedMerchantNo = $operatedMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'agreement_payment_query_web3_v1_0';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\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 AgreementPaymentQueryWeb3V10RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AgreementPaymentQueryWeb3V10RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AgreementPaymentQueryWeb3V10RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentQueryWeb3V10RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'MWallet';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/m-wallet/web3/agreement/payment-query';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AgreementPaymentQueryWeb3V10Request $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->getMerchantUserNo() != null){
|
||||
$internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getOperatedMerchantNo() != null){
|
||||
$internalRequest->addParameter('operatedMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getOperatedMerchantNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AgreementPaymentQueryWeb3V10RequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AgreementPaymentQueryWeb3V10Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var FreeSecretQueryRespDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\MWallet\Model\FreeSecretQueryRespDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param FreeSecretQueryRespDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return FreeSecretQueryRespDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AgreementPaymentQueryWeb3V10ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AgreementPaymentQueryWeb3V10ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AgreementPaymentQueryWeb3V10ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentQueryWeb3V10ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentQueryWeb3V10Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AgreementPaymentQueryWeb3V10Response();
|
||||
}
|
||||
}
|
||||
|
||||
AgreementPaymentQueryWeb3V10ResponseUnMarshaller::__init();
|
||||
167
lib/Service/MWallet/Model/AgreementPaymentRequestRequest.php
Normal file
167
lib/Service/MWallet/Model/AgreementPaymentRequestRequest.php
Normal file
@@ -0,0 +1,167 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AgreementPaymentRequestRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantUserNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $returnUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return AgreementPaymentRequestRequest
|
||||
*/
|
||||
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 AgreementPaymentRequestRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantUserNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantUserNo()
|
||||
{
|
||||
return $this->merchantUserNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantUserNo
|
||||
*
|
||||
* @param string $merchantUserNo
|
||||
* @return AgreementPaymentRequestRequest
|
||||
*/
|
||||
public function setMerchantUserNo($merchantUserNo)
|
||||
{
|
||||
$this->merchantUserNo = $merchantUserNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return AgreementPaymentRequestRequest
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets returnUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnUrl()
|
||||
{
|
||||
return $this->returnUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnUrl
|
||||
*
|
||||
* @param string $returnUrl
|
||||
* @return AgreementPaymentRequestRequest
|
||||
*/
|
||||
public function setReturnUrl($returnUrl)
|
||||
{
|
||||
$this->returnUrl = $returnUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
*
|
||||
* @param string $notifyUrl
|
||||
* @return AgreementPaymentRequestRequest
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'agreementPaymentRequest';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\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 AgreementPaymentRequestRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AgreementPaymentRequestRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AgreementPaymentRequestRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentRequestRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'MWallet';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/m-wallet/agreement/payment-request';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AgreementPaymentRequestRequest $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->getMerchantUserNo() != null){
|
||||
$internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string'));
|
||||
}
|
||||
if($request->getRequestNo() != null){
|
||||
$internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
|
||||
}
|
||||
if($request->getReturnUrl() != null){
|
||||
$internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string'));
|
||||
}
|
||||
if($request->getNotifyUrl() != null){
|
||||
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'notify-url'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AgreementPaymentRequestRequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AgreementPaymentRequestResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var RequestURLResponseDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\MWallet\Model\RequestURLResponseDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param RequestURLResponseDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RequestURLResponseDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AgreementPaymentRequestResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AgreementPaymentRequestResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AgreementPaymentRequestResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentRequestResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentRequestResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AgreementPaymentRequestResponse();
|
||||
}
|
||||
}
|
||||
|
||||
AgreementPaymentRequestResponseUnMarshaller::__init();
|
||||
167
lib/Service/MWallet/Model/AgreementPaymentRequestV1Request.php
Normal file
167
lib/Service/MWallet/Model/AgreementPaymentRequestV1Request.php
Normal file
@@ -0,0 +1,167 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AgreementPaymentRequestV1Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantUserNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $returnUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return AgreementPaymentRequestV1Request
|
||||
*/
|
||||
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 AgreementPaymentRequestV1Request
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantUserNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantUserNo()
|
||||
{
|
||||
return $this->merchantUserNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantUserNo
|
||||
*
|
||||
* @param string $merchantUserNo
|
||||
* @return AgreementPaymentRequestV1Request
|
||||
*/
|
||||
public function setMerchantUserNo($merchantUserNo)
|
||||
{
|
||||
$this->merchantUserNo = $merchantUserNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return AgreementPaymentRequestV1Request
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets returnUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnUrl()
|
||||
{
|
||||
return $this->returnUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnUrl
|
||||
*
|
||||
* @param string $returnUrl
|
||||
* @return AgreementPaymentRequestV1Request
|
||||
*/
|
||||
public function setReturnUrl($returnUrl)
|
||||
{
|
||||
$this->returnUrl = $returnUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
*
|
||||
* @param string $notifyUrl
|
||||
* @return AgreementPaymentRequestV1Request
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'agreement_payment_request_v1';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\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 AgreementPaymentRequestV1RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AgreementPaymentRequestV1RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AgreementPaymentRequestV1RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentRequestV1RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'MWallet';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/m-wallet/agreement/payment-request';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AgreementPaymentRequestV1Request $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->getMerchantUserNo() != null){
|
||||
$internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string'));
|
||||
}
|
||||
if($request->getRequestNo() != null){
|
||||
$internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
|
||||
}
|
||||
if($request->getReturnUrl() != null){
|
||||
$internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string'));
|
||||
}
|
||||
if($request->getNotifyUrl() != null){
|
||||
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'notify-url'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AgreementPaymentRequestV1RequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AgreementPaymentRequestV1Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var RequestURLResponseDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\MWallet\Model\RequestURLResponseDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param RequestURLResponseDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RequestURLResponseDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AgreementPaymentRequestV1ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AgreementPaymentRequestV1ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AgreementPaymentRequestV1ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentRequestV1ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentRequestV1Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AgreementPaymentRequestV1Response();
|
||||
}
|
||||
}
|
||||
|
||||
AgreementPaymentRequestV1ResponseUnMarshaller::__init();
|
||||
167
lib/Service/MWallet/Model/AgreementPaymentSignRequest.php
Normal file
167
lib/Service/MWallet/Model/AgreementPaymentSignRequest.php
Normal file
@@ -0,0 +1,167 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AgreementPaymentSignRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $returnUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantUserNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* Gets returnUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnUrl()
|
||||
{
|
||||
return $this->returnUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnUrl
|
||||
*
|
||||
* @param string $returnUrl
|
||||
* @return AgreementPaymentSignRequest
|
||||
*/
|
||||
public function setReturnUrl($returnUrl)
|
||||
{
|
||||
$this->returnUrl = $returnUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
*
|
||||
* @param string $notifyUrl
|
||||
* @return AgreementPaymentSignRequest
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return AgreementPaymentSignRequest
|
||||
*/
|
||||
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 AgreementPaymentSignRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantUserNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantUserNo()
|
||||
{
|
||||
return $this->merchantUserNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantUserNo
|
||||
*
|
||||
* @param string $merchantUserNo
|
||||
* @return AgreementPaymentSignRequest
|
||||
*/
|
||||
public function setMerchantUserNo($merchantUserNo)
|
||||
{
|
||||
$this->merchantUserNo = $merchantUserNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return AgreementPaymentSignRequest
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'agreementPaymentSign';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\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 AgreementPaymentSignRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AgreementPaymentSignRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AgreementPaymentSignRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentSignRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'MWallet';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/m-wallet/agreement/payment-sign';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AgreementPaymentSignRequest $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->getReturnUrl() != null){
|
||||
$internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string'));
|
||||
}
|
||||
if($request->getNotifyUrl() != null){
|
||||
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), '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'));
|
||||
}
|
||||
if($request->getMerchantUserNo() != null){
|
||||
$internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AgreementPaymentSignRequestMarshaller::__init();
|
||||
34
lib/Service/MWallet/Model/AgreementPaymentSignResponse.php
Normal file
34
lib/Service/MWallet/Model/AgreementPaymentSignResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AgreementPaymentSignResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var RequestURLResponseDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\MWallet\Model\RequestURLResponseDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param RequestURLResponseDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RequestURLResponseDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AgreementPaymentSignResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AgreementPaymentSignResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AgreementPaymentSignResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentSignResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentSignResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AgreementPaymentSignResponse();
|
||||
}
|
||||
}
|
||||
|
||||
AgreementPaymentSignResponseUnMarshaller::__init();
|
||||
167
lib/Service/MWallet/Model/AgreementPaymentSignV10Request.php
Normal file
167
lib/Service/MWallet/Model/AgreementPaymentSignV10Request.php
Normal file
@@ -0,0 +1,167 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AgreementPaymentSignV10Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $returnUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantUserNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* Gets returnUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnUrl()
|
||||
{
|
||||
return $this->returnUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnUrl
|
||||
*
|
||||
* @param string $returnUrl
|
||||
* @return AgreementPaymentSignV10Request
|
||||
*/
|
||||
public function setReturnUrl($returnUrl)
|
||||
{
|
||||
$this->returnUrl = $returnUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
*
|
||||
* @param string $notifyUrl
|
||||
* @return AgreementPaymentSignV10Request
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return AgreementPaymentSignV10Request
|
||||
*/
|
||||
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 AgreementPaymentSignV10Request
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantUserNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantUserNo()
|
||||
{
|
||||
return $this->merchantUserNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantUserNo
|
||||
*
|
||||
* @param string $merchantUserNo
|
||||
* @return AgreementPaymentSignV10Request
|
||||
*/
|
||||
public function setMerchantUserNo($merchantUserNo)
|
||||
{
|
||||
$this->merchantUserNo = $merchantUserNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return AgreementPaymentSignV10Request
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'agreement_payment_sign_v1_0';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\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 AgreementPaymentSignV10RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AgreementPaymentSignV10RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AgreementPaymentSignV10RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentSignV10RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'MWallet';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/m-wallet/agreement/payment-sign';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AgreementPaymentSignV10Request $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->getReturnUrl() != null){
|
||||
$internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string'));
|
||||
}
|
||||
if($request->getNotifyUrl() != null){
|
||||
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), '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'));
|
||||
}
|
||||
if($request->getMerchantUserNo() != null){
|
||||
$internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AgreementPaymentSignV10RequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AgreementPaymentSignV10Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var RequestURLResponseDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\MWallet\Model\RequestURLResponseDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param RequestURLResponseDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return RequestURLResponseDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AgreementPaymentSignV10ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AgreementPaymentSignV10ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AgreementPaymentSignV10ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentSignV10ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentSignV10Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AgreementPaymentSignV10Response();
|
||||
}
|
||||
}
|
||||
|
||||
AgreementPaymentSignV10ResponseUnMarshaller::__init();
|
||||
192
lib/Service/MWallet/Model/AgreementPaymentSignWeb3V10Request.php
Normal file
192
lib/Service/MWallet/Model/AgreementPaymentSignWeb3V10Request.php
Normal file
@@ -0,0 +1,192 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AgreementPaymentSignWeb3V10Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantUserNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $operatedMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $returnUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* Gets merchantUserNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantUserNo()
|
||||
{
|
||||
return $this->merchantUserNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantUserNo
|
||||
*
|
||||
* @param string $merchantUserNo
|
||||
* @return AgreementPaymentSignWeb3V10Request
|
||||
*/
|
||||
public function setMerchantUserNo($merchantUserNo)
|
||||
{
|
||||
$this->merchantUserNo = $merchantUserNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets operatedMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOperatedMerchantNo()
|
||||
{
|
||||
return $this->operatedMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets operatedMerchantNo
|
||||
*
|
||||
* @param string $operatedMerchantNo
|
||||
* @return AgreementPaymentSignWeb3V10Request
|
||||
*/
|
||||
public function setOperatedMerchantNo($operatedMerchantNo)
|
||||
{
|
||||
$this->operatedMerchantNo = $operatedMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
*
|
||||
* @param string $notifyUrl
|
||||
* @return AgreementPaymentSignWeb3V10Request
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return AgreementPaymentSignWeb3V10Request
|
||||
*/
|
||||
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 AgreementPaymentSignWeb3V10Request
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets returnUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getReturnUrl()
|
||||
{
|
||||
return $this->returnUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets returnUrl
|
||||
*
|
||||
* @param string $returnUrl
|
||||
* @return AgreementPaymentSignWeb3V10Request
|
||||
*/
|
||||
public function setReturnUrl($returnUrl)
|
||||
{
|
||||
$this->returnUrl = $returnUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo
|
||||
* @return AgreementPaymentSignWeb3V10Request
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'agreement_payment_sign_web3_v1_0';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\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 AgreementPaymentSignWeb3V10RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AgreementPaymentSignWeb3V10RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AgreementPaymentSignWeb3V10RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentSignWeb3V10RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'MWallet';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/m-wallet/web3/agreement/payment-sign';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AgreementPaymentSignWeb3V10Request $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->getMerchantUserNo() != null){
|
||||
$internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string'));
|
||||
}
|
||||
if($request->getOperatedMerchantNo() != null){
|
||||
$internalRequest->addParameter('operatedMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getOperatedMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getNotifyUrl() != null){
|
||||
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getRequestNo() != null){
|
||||
$internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
|
||||
}
|
||||
if($request->getReturnUrl() != null){
|
||||
$internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string'));
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AgreementPaymentSignWeb3V10RequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AgreementPaymentSignWeb3V10Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var FreeSecretSignRespDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\MWallet\Model\FreeSecretSignRespDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param FreeSecretSignRespDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return FreeSecretSignRespDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AgreementPaymentSignWeb3V10ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AgreementPaymentSignWeb3V10ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AgreementPaymentSignWeb3V10ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentSignWeb3V10ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementPaymentSignWeb3V10Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AgreementPaymentSignWeb3V10Response();
|
||||
}
|
||||
}
|
||||
|
||||
AgreementPaymentSignWeb3V10ResponseUnMarshaller::__init();
|
||||
242
lib/Service/MWallet/Model/AutoDeductionCreateRequest.php
Normal file
242
lib/Service/MWallet/Model/AutoDeductionCreateRequest.php
Normal file
@@ -0,0 +1,242 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AutoDeductionCreateRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantUserNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $amount;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $bindCardId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $payWay;
|
||||
/**
|
||||
* @var \DateTime
|
||||
*/
|
||||
private $expireTime;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $goodsName;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return AutoDeductionCreateRequest
|
||||
*/
|
||||
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 AutoDeductionCreateRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantUserNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantUserNo()
|
||||
{
|
||||
return $this->merchantUserNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantUserNo
|
||||
*
|
||||
* @param string $merchantUserNo
|
||||
* @return AutoDeductionCreateRequest
|
||||
*/
|
||||
public function setMerchantUserNo($merchantUserNo)
|
||||
{
|
||||
$this->merchantUserNo = $merchantUserNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return AutoDeductionCreateRequest
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets amount
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAmount()
|
||||
{
|
||||
return $this->amount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets amount
|
||||
*
|
||||
* @param string $amount
|
||||
* @return AutoDeductionCreateRequest
|
||||
*/
|
||||
public function setAmount($amount)
|
||||
{
|
||||
$this->amount = $amount;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets bindCardId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBindCardId()
|
||||
{
|
||||
return $this->bindCardId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bindCardId
|
||||
*
|
||||
* @param string $bindCardId
|
||||
* @return AutoDeductionCreateRequest
|
||||
*/
|
||||
public function setBindCardId($bindCardId)
|
||||
{
|
||||
$this->bindCardId = $bindCardId;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets payWay
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayWay()
|
||||
{
|
||||
return $this->payWay;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payWay
|
||||
*
|
||||
* @param string $payWay
|
||||
* @return AutoDeductionCreateRequest
|
||||
*/
|
||||
public function setPayWay($payWay)
|
||||
{
|
||||
$this->payWay = $payWay;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets expireTime
|
||||
*
|
||||
* @return \DateTime
|
||||
*/
|
||||
public function getExpireTime()
|
||||
{
|
||||
return $this->expireTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets expireTime
|
||||
*
|
||||
* @param \DateTime $expireTime
|
||||
* @return AutoDeductionCreateRequest
|
||||
*/
|
||||
public function setExpireTime($expireTime)
|
||||
{
|
||||
$this->expireTime = $expireTime;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets goodsName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getGoodsName()
|
||||
{
|
||||
return $this->goodsName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets goodsName
|
||||
*
|
||||
* @param string $goodsName
|
||||
* @return AutoDeductionCreateRequest
|
||||
*/
|
||||
public function setGoodsName($goodsName)
|
||||
{
|
||||
$this->goodsName = $goodsName;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'auto_deduction_create';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\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 AutoDeductionCreateRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AutoDeductionCreateRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AutoDeductionCreateRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AutoDeductionCreateRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'MWallet';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/m-wallet/trade/auto-deduction/create';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AutoDeductionCreateRequest $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->getMerchantUserNo() != null){
|
||||
$internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string'));
|
||||
}
|
||||
if($request->getRequestNo() != null){
|
||||
$internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
|
||||
}
|
||||
if($request->getAmount() != null){
|
||||
$internalRequest->addParameter('amount', ObjectSerializer::sanitizeForSerialization($request->getAmount(), 'string'));
|
||||
}
|
||||
if($request->getBindCardId() != null){
|
||||
$internalRequest->addParameter('bindCardId', ObjectSerializer::sanitizeForSerialization($request->getBindCardId(), 'string'));
|
||||
}
|
||||
if($request->getPayWay() != null){
|
||||
$internalRequest->addParameter('payWay', ObjectSerializer::sanitizeForSerialization($request->getPayWay(), 'string', 'enum'));
|
||||
}
|
||||
if($request->getExpireTime() != null){
|
||||
$internalRequest->addParameter('expireTime', ObjectSerializer::sanitizeForSerialization($request->getExpireTime(), '\DateTime', 'date-time'));
|
||||
}
|
||||
if($request->getGoodsName() != null){
|
||||
$internalRequest->addParameter('goodsName', ObjectSerializer::sanitizeForSerialization($request->getGoodsName(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AutoDeductionCreateRequestMarshaller::__init();
|
||||
34
lib/Service/MWallet/Model/AutoDeductionCreateResponse.php
Normal file
34
lib/Service/MWallet/Model/AutoDeductionCreateResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AutoDeductionCreateResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var AutoDeductionResponseDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\MWallet\Model\AutoDeductionResponseDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param AutoDeductionResponseDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AutoDeductionResponseDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AutoDeductionCreateResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AutoDeductionCreateResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AutoDeductionCreateResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AutoDeductionCreateResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AutoDeductionCreateResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AutoDeductionCreateResponse();
|
||||
}
|
||||
}
|
||||
|
||||
AutoDeductionCreateResponseUnMarshaller::__init();
|
||||
92
lib/Service/MWallet/Model/AutoDeductionQueryRequest.php
Normal file
92
lib/Service/MWallet/Model/AutoDeductionQueryRequest.php
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AutoDeductionQueryRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return AutoDeductionQueryRequest
|
||||
*/
|
||||
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 AutoDeductionQueryRequest
|
||||
*/
|
||||
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 AutoDeductionQueryRequest
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'auto_deduction_query';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\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 AutoDeductionQueryRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AutoDeductionQueryRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AutoDeductionQueryRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AutoDeductionQueryRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'MWallet';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/m-wallet/trade/auto-deduction/query';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AutoDeductionQueryRequest $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->getRequestNo() != null){
|
||||
$internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AutoDeductionQueryRequestMarshaller::__init();
|
||||
34
lib/Service/MWallet/Model/AutoDeductionQueryResponse.php
Normal file
34
lib/Service/MWallet/Model/AutoDeductionQueryResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AutoDeductionQueryResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var AutoDeductionQueryResponseDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\MWallet\Model\AutoDeductionQueryResponseDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param AutoDeductionQueryResponseDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AutoDeductionQueryResponseDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
423
lib/Service/MWallet/Model/AutoDeductionQueryResponseDTO.php
Normal file
423
lib/Service/MWallet/Model/AutoDeductionQueryResponseDTO.php
Normal file
@@ -0,0 +1,423 @@
|
||||
<?php
|
||||
/**
|
||||
* AutoDeductionQueryResponseDTO
|
||||
*
|
||||
* 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\MWallet\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* AutoDeductionQueryResponseDTO Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description 请修改我
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class AutoDeductionQueryResponseDTO implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'AutoDeductionQueryResponseDTO';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'requestNo' => 'string',
|
||||
'uniqueOrderNo' => 'string',
|
||||
'status' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'requestNo' => null,
|
||||
'uniqueOrderNo' => null,
|
||||
'status' => null
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'requestNo' => 'requestNo',
|
||||
'uniqueOrderNo' => 'uniqueOrderNo',
|
||||
'status' => 'status'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'requestNo' => 'setRequestNo',
|
||||
'uniqueOrderNo' => 'setUniqueOrderNo',
|
||||
'status' => 'setStatus'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'requestNo' => 'getRequestNo',
|
||||
'uniqueOrderNo' => 'getUniqueOrderNo',
|
||||
'status' => 'getStatus'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
*
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
|
||||
$this->container['uniqueOrderNo'] = isset($data['uniqueOrderNo']) ? $data['uniqueOrderNo'] : null;
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
*
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
*
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
*
|
||||
* @param string $code 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 message
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->container['requestNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo requestNo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->container['requestNo'] = $requestNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets uniqueOrderNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUniqueOrderNo()
|
||||
{
|
||||
return $this->container['uniqueOrderNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets uniqueOrderNo
|
||||
*
|
||||
* @param string $uniqueOrderNo uniqueOrderNo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUniqueOrderNo($uniqueOrderNo)
|
||||
{
|
||||
$this->container['uniqueOrderNo'] = $uniqueOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets status
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->container['status'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status
|
||||
*
|
||||
* @param string $status status
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->container['status'] = $status;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AutoDeductionQueryResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AutoDeductionQueryResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AutoDeductionQueryResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AutoDeductionQueryResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AutoDeductionQueryResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AutoDeductionQueryResponse();
|
||||
}
|
||||
}
|
||||
|
||||
AutoDeductionQueryResponseUnMarshaller::__init();
|
||||
393
lib/Service/MWallet/Model/AutoDeductionResponseDTO.php
Normal file
393
lib/Service/MWallet/Model/AutoDeductionResponseDTO.php
Normal file
@@ -0,0 +1,393 @@
|
||||
<?php
|
||||
/**
|
||||
* AutoDeductionResponseDTO
|
||||
*
|
||||
* 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\MWallet\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* AutoDeductionResponseDTO Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description 请修改我
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class AutoDeductionResponseDTO implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'AutoDeductionResponseDTO';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'requestNo' => 'string',
|
||||
'status' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => 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 = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'requestNo' => 'requestNo',
|
||||
'status' => 'status'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'requestNo' => 'setRequestNo',
|
||||
'status' => 'setStatus'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'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['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : 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 = [];
|
||||
|
||||
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 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 message
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->container['requestNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo requestNo
|
||||
*
|
||||
* @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 status
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->container['status'] = $status;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
117
lib/Service/MWallet/Model/AutoWithdrawQueryRequest.php
Normal file
117
lib/Service/MWallet/Model/AutoWithdrawQueryRequest.php
Normal file
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AutoWithdrawQueryRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $operatedMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
|
||||
/**
|
||||
* Gets operatedMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOperatedMerchantNo()
|
||||
{
|
||||
return $this->operatedMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets operatedMerchantNo
|
||||
*
|
||||
* @param string $operatedMerchantNo
|
||||
* @return AutoWithdrawQueryRequest
|
||||
*/
|
||||
public function setOperatedMerchantNo($operatedMerchantNo)
|
||||
{
|
||||
$this->operatedMerchantNo = $operatedMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return AutoWithdrawQueryRequest
|
||||
*/
|
||||
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 AutoWithdrawQueryRequest
|
||||
*/
|
||||
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 AutoWithdrawQueryRequest
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'auto_withdraw_query';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\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 AutoWithdrawQueryRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AutoWithdrawQueryRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AutoWithdrawQueryRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AutoWithdrawQueryRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'MWallet';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/m-wallet/auto-withdraw-query';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AutoWithdrawQueryRequest $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->getOperatedMerchantNo() != null){
|
||||
$internalRequest->addParameter('operatedMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getOperatedMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getRequestNo() != null){
|
||||
$internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AutoWithdrawQueryRequestMarshaller::__init();
|
||||
34
lib/Service/MWallet/Model/AutoWithdrawQueryResponse.php
Normal file
34
lib/Service/MWallet/Model/AutoWithdrawQueryResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AutoWithdrawQueryResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var AutoWithdrawQueryResponseDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\MWallet\Model\AutoWithdrawQueryResponseDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param AutoWithdrawQueryResponseDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AutoWithdrawQueryResponseDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
513
lib/Service/MWallet/Model/AutoWithdrawQueryResponseDTO.php
Normal file
513
lib/Service/MWallet/Model/AutoWithdrawQueryResponseDTO.php
Normal file
@@ -0,0 +1,513 @@
|
||||
<?php
|
||||
/**
|
||||
* AutoWithdrawQueryResponseDTO
|
||||
*
|
||||
* 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\MWallet\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* AutoWithdrawQueryResponseDTO Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description 自动提现订单查询返回结果
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class AutoWithdrawQueryResponseDTO implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'AutoWithdrawQueryResponseDTO';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'businessNo' => 'string',
|
||||
'withdrawAmount' => 'string',
|
||||
'deductionAmount' => 'string',
|
||||
'arrivalAmount' => 'string',
|
||||
'orderStatus' => 'string',
|
||||
'completeTime' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'businessNo' => null,
|
||||
'withdrawAmount' => null,
|
||||
'deductionAmount' => null,
|
||||
'arrivalAmount' => null,
|
||||
'orderStatus' => null,
|
||||
'completeTime' => 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',
|
||||
'businessNo' => 'businessNo',
|
||||
'withdrawAmount' => 'withdrawAmount',
|
||||
'deductionAmount' => 'deductionAmount',
|
||||
'arrivalAmount' => 'arrivalAmount',
|
||||
'orderStatus' => 'orderStatus',
|
||||
'completeTime' => 'completeTime'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'businessNo' => 'setBusinessNo',
|
||||
'withdrawAmount' => 'setWithdrawAmount',
|
||||
'deductionAmount' => 'setDeductionAmount',
|
||||
'arrivalAmount' => 'setArrivalAmount',
|
||||
'orderStatus' => 'setOrderStatus',
|
||||
'completeTime' => 'setCompleteTime'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'businessNo' => 'getBusinessNo',
|
||||
'withdrawAmount' => 'getWithdrawAmount',
|
||||
'deductionAmount' => 'getDeductionAmount',
|
||||
'arrivalAmount' => 'getArrivalAmount',
|
||||
'orderStatus' => 'getOrderStatus',
|
||||
'completeTime' => 'getCompleteTime'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['businessNo'] = isset($data['businessNo']) ? $data['businessNo'] : null;
|
||||
$this->container['withdrawAmount'] = isset($data['withdrawAmount']) ? $data['withdrawAmount'] : null;
|
||||
$this->container['deductionAmount'] = isset($data['deductionAmount']) ? $data['deductionAmount'] : null;
|
||||
$this->container['arrivalAmount'] = isset($data['arrivalAmount']) ? $data['arrivalAmount'] : null;
|
||||
$this->container['orderStatus'] = isset($data['orderStatus']) ? $data['orderStatus'] : null;
|
||||
$this->container['completeTime'] = isset($data['completeTime']) ? $data['completeTime'] : 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 <p>返回码,成功时为空</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
*
|
||||
* @param string $message <p>返回异常错误描述</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets businessNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessNo()
|
||||
{
|
||||
return $this->container['businessNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets businessNo
|
||||
*
|
||||
* @param string $businessNo <p>易宝业务订单号</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBusinessNo($businessNo)
|
||||
{
|
||||
$this->container['businessNo'] = $businessNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets withdrawAmount
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getWithdrawAmount()
|
||||
{
|
||||
return $this->container['withdrawAmount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets withdrawAmount
|
||||
*
|
||||
* @param string $withdrawAmount <p>提现金额</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setWithdrawAmount($withdrawAmount)
|
||||
{
|
||||
$this->container['withdrawAmount'] = $withdrawAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets deductionAmount
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDeductionAmount()
|
||||
{
|
||||
return $this->container['deductionAmount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets deductionAmount
|
||||
*
|
||||
* @param string $deductionAmount <p>扣账金额</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setDeductionAmount($deductionAmount)
|
||||
{
|
||||
$this->container['deductionAmount'] = $deductionAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets arrivalAmount
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getArrivalAmount()
|
||||
{
|
||||
return $this->container['arrivalAmount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets arrivalAmount
|
||||
*
|
||||
* @param string $arrivalAmount <p>到账金额</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setArrivalAmount($arrivalAmount)
|
||||
{
|
||||
$this->container['arrivalAmount'] = $arrivalAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderStatus
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderStatus()
|
||||
{
|
||||
return $this->container['orderStatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderStatus
|
||||
*
|
||||
* @param string $orderStatus <p>订单状态</p> <p><em>PROCESS:请求处理中</em></p> <div data-page-id=\"LSY6dVw3GoT6SxxbUcpc11nyn6d\" data-docx-has-block-data=\"false\"> <div class=\"ace-line ace-line old-record-id-Z860daOuIoEgCwxwt8gcGYF3nYg\"><em>FAIL:处理失败</em></div> <div class=\"ace-line ace-line old-record-id-U888dy2q4oOC0uxAPotcwG9Enje\"><em>SUCCESS:处理成功</em></div> </div>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderStatus($orderStatus)
|
||||
{
|
||||
$this->container['orderStatus'] = $orderStatus;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets completeTime
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCompleteTime()
|
||||
{
|
||||
return $this->container['completeTime'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets completeTime
|
||||
*
|
||||
* @param string $completeTime <p>提现完成时间</p>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCompleteTime($completeTime)
|
||||
{
|
||||
$this->container['completeTime'] = $completeTime;
|
||||
|
||||
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,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AutoWithdrawQueryResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AutoWithdrawQueryResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AutoWithdrawQueryResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AutoWithdrawQueryResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AutoWithdrawQueryResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AutoWithdrawQueryResponse();
|
||||
}
|
||||
}
|
||||
|
||||
AutoWithdrawQueryResponseUnMarshaller::__init();
|
||||
167
lib/Service/MWallet/Model/AutoWithdrawRequest.php
Normal file
167
lib/Service/MWallet/Model/AutoWithdrawRequest.php
Normal file
@@ -0,0 +1,167 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AutoWithdrawRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $operatedMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantUserNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $requestNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
|
||||
/**
|
||||
* Gets operatedMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOperatedMerchantNo()
|
||||
{
|
||||
return $this->operatedMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets operatedMerchantNo
|
||||
*
|
||||
* @param string $operatedMerchantNo
|
||||
* @return AutoWithdrawRequest
|
||||
*/
|
||||
public function setOperatedMerchantNo($operatedMerchantNo)
|
||||
{
|
||||
$this->operatedMerchantNo = $operatedMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return AutoWithdrawRequest
|
||||
*/
|
||||
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 AutoWithdrawRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets merchantUserNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantUserNo()
|
||||
{
|
||||
return $this->merchantUserNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantUserNo
|
||||
*
|
||||
* @param string $merchantUserNo
|
||||
* @return AutoWithdrawRequest
|
||||
*/
|
||||
public function setMerchantUserNo($merchantUserNo)
|
||||
{
|
||||
$this->merchantUserNo = $merchantUserNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets requestNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRequestNo()
|
||||
{
|
||||
return $this->requestNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets requestNo
|
||||
*
|
||||
* @param string $requestNo
|
||||
* @return AutoWithdrawRequest
|
||||
*/
|
||||
public function setRequestNo($requestNo)
|
||||
{
|
||||
$this->requestNo = $requestNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
*
|
||||
* @param string $notifyUrl
|
||||
* @return AutoWithdrawRequest
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'auto_withdraw';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
95
lib/Service/MWallet/Model/AutoWithdrawRequestMarshaller.php
Normal file
95
lib/Service/MWallet/Model/AutoWithdrawRequestMarshaller.php
Normal file
@@ -0,0 +1,95 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\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 AutoWithdrawRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AutoWithdrawRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AutoWithdrawRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AutoWithdrawRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'MWallet';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/m-wallet/auto-withdraw';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AutoWithdrawRequest $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->getOperatedMerchantNo() != null){
|
||||
$internalRequest->addParameter('operatedMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getOperatedMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantNo() != null){
|
||||
$internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if($request->getMerchantUserNo() != null){
|
||||
$internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string'));
|
||||
}
|
||||
if($request->getRequestNo() != null){
|
||||
$internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
|
||||
}
|
||||
if($request->getNotifyUrl() != null){
|
||||
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'notify-url'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AutoWithdrawRequestMarshaller::__init();
|
||||
34
lib/Service/MWallet/Model/AutoWithdrawResponse.php
Normal file
34
lib/Service/MWallet/Model/AutoWithdrawResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
class AutoWithdrawResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var AutoWithdrawResponseDTO
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\MWallet\Model\AutoWithdrawResponseDTO';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param AutoWithdrawResponseDTO $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AutoWithdrawResponseDTO
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
393
lib/Service/MWallet/Model/AutoWithdrawResponseDTO.php
Normal file
393
lib/Service/MWallet/Model/AutoWithdrawResponseDTO.php
Normal file
@@ -0,0 +1,393 @@
|
||||
<?php
|
||||
/**
|
||||
* AutoWithdrawResponseDTO
|
||||
*
|
||||
* 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\MWallet\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* AutoWithdrawResponseDTO Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description 请修改我
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class AutoWithdrawResponseDTO implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'AutoWithdrawResponseDTO';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'businessNo' => 'string',
|
||||
'code' => 'string',
|
||||
'orderStatus' => 'string',
|
||||
'message' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'businessNo' => null,
|
||||
'code' => null,
|
||||
'orderStatus' => 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 = [
|
||||
'businessNo' => 'businessNo',
|
||||
'code' => 'code',
|
||||
'orderStatus' => 'orderStatus',
|
||||
'message' => 'message'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'businessNo' => 'setBusinessNo',
|
||||
'code' => 'setCode',
|
||||
'orderStatus' => 'setOrderStatus',
|
||||
'message' => 'setMessage'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'businessNo' => 'getBusinessNo',
|
||||
'code' => 'getCode',
|
||||
'orderStatus' => 'getOrderStatus',
|
||||
'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['businessNo'] = isset($data['businessNo']) ? $data['businessNo'] : null;
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['orderStatus'] = isset($data['orderStatus']) ? $data['orderStatus'] : 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 businessNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessNo()
|
||||
{
|
||||
return $this->container['businessNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets businessNo
|
||||
*
|
||||
* @param string $businessNo businessNo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBusinessNo($businessNo)
|
||||
{
|
||||
$this->container['businessNo'] = $businessNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
*
|
||||
* @param string $code code
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderStatus
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderStatus()
|
||||
{
|
||||
return $this->container['orderStatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderStatus
|
||||
*
|
||||
* @param string $orderStatus orderStatus
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderStatus($orderStatus)
|
||||
{
|
||||
$this->container['orderStatus'] = $orderStatus;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
*
|
||||
* @param string $message 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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\MWallet\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AutoWithdrawResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AutoWithdrawResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AutoWithdrawResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AutoWithdrawResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AutoWithdrawResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AutoWithdrawResponse();
|
||||
}
|
||||
}
|
||||
|
||||
AutoWithdrawResponseUnMarshaller::__init();
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user