增加聚合支付托管下单

This commit is contained in:
2024-04-01 17:07:53 +08:00
parent 899d816bc3
commit f8299b36aa
1291 changed files with 220566 additions and 169 deletions

View File

@@ -0,0 +1,452 @@
<?php
/**
* CompanyFinanceAccountCompCustOpenAcctRspDTOResult
*
* 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\P2f\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* CompanyFinanceAccountCompCustOpenAcctRspDTOResult Class Doc Comment
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class CompanyFinanceAccountCompCustOpenAcctRspDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CompanyFinanceAccountCompCustOpenAcctRspDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'status' => 'string',
'errorCode' => 'string',
'errorMsg' => 'string',
'merchantNo' => 'string',
'requestNo' => 'string',
'channelOpenId' => 'string'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'status' => null,
'errorCode' => null,
'errorMsg' => null,
'merchantNo' => null,
'requestNo' => null,
'channelOpenId' => null
];
/**
* Array of property to type mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @var string[]
*/
protected static $attributeMap = [
'status' => 'status',
'errorCode' => 'errorCode',
'errorMsg' => 'errorMsg',
'merchantNo' => 'merchantNo',
'requestNo' => 'requestNo',
'channelOpenId' => 'channelOpenId'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'status' => 'setStatus',
'errorCode' => 'setErrorCode',
'errorMsg' => 'setErrorMsg',
'merchantNo' => 'setMerchantNo',
'requestNo' => 'setRequestNo',
'channelOpenId' => 'setChannelOpenId'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'status' => 'getStatus',
'errorCode' => 'getErrorCode',
'errorMsg' => 'getErrorMsg',
'merchantNo' => 'getMerchantNo',
'requestNo' => 'getRequestNo',
'channelOpenId' => 'getChannelOpenId'
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['errorCode'] = isset($data['errorCode']) ? $data['errorCode'] : null;
$this->container['errorMsg'] = isset($data['errorMsg']) ? $data['errorMsg'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
$this->container['channelOpenId'] = isset($data['channelOpenId']) ? $data['channelOpenId'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
*
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets status
*
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status
*
* @param string $status 状态
*
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Gets errorCode
*
* @return string
*/
public function getErrorCode()
{
return $this->container['errorCode'];
}
/**
* Sets errorCode
*
* @param string $errorCode 错误码
*
* @return $this
*/
public function setErrorCode($errorCode)
{
$this->container['errorCode'] = $errorCode;
return $this;
}
/**
* Gets errorMsg
*
* @return string
*/
public function getErrorMsg()
{
return $this->container['errorMsg'];
}
/**
* Sets errorMsg
*
* @param string $errorMsg 错误信息
*
* @return $this
*/
public function setErrorMsg($errorMsg)
{
$this->container['errorMsg'] = $errorMsg;
return $this;
}
/**
* Gets merchantNo
*
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
*
* @param string $merchantNo 商户号
*
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
*
* @param string $requestNo 请求号
*
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Gets channelOpenId
*
* @return string
*/
public function getChannelOpenId()
{
return $this->container['channelOpenId'];
}
/**
* Sets channelOpenId
*
* @param string $channelOpenId 银行企业号
*
* @return $this
*/
public function setChannelOpenId($channelOpenId)
{
$this->container['channelOpenId'] = $channelOpenId;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param integer $offset Offset
*
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param integer $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param integer $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param integer $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,452 @@
<?php
/**
* CompanyFinanceAccountQueryCompCustOpenAcctRspDTOResult
*
* 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\P2f\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* CompanyFinanceAccountQueryCompCustOpenAcctRspDTOResult Class Doc Comment
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class CompanyFinanceAccountQueryCompCustOpenAcctRspDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CompanyFinanceAccountQueryCompCustOpenAcctRspDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'status' => 'string',
'errorCode' => 'string',
'errorMsg' => 'string',
'merchantNo' => 'string',
'requestNo' => 'string',
'channelOpenId' => 'string'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'status' => null,
'errorCode' => null,
'errorMsg' => null,
'merchantNo' => null,
'requestNo' => null,
'channelOpenId' => null
];
/**
* Array of property to type mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @var string[]
*/
protected static $attributeMap = [
'status' => 'status',
'errorCode' => 'errorCode',
'errorMsg' => 'errorMsg',
'merchantNo' => 'merchantNo',
'requestNo' => 'requestNo',
'channelOpenId' => 'channelOpenId'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'status' => 'setStatus',
'errorCode' => 'setErrorCode',
'errorMsg' => 'setErrorMsg',
'merchantNo' => 'setMerchantNo',
'requestNo' => 'setRequestNo',
'channelOpenId' => 'setChannelOpenId'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'status' => 'getStatus',
'errorCode' => 'getErrorCode',
'errorMsg' => 'getErrorMsg',
'merchantNo' => 'getMerchantNo',
'requestNo' => 'getRequestNo',
'channelOpenId' => 'getChannelOpenId'
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['errorCode'] = isset($data['errorCode']) ? $data['errorCode'] : null;
$this->container['errorMsg'] = isset($data['errorMsg']) ? $data['errorMsg'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
$this->container['channelOpenId'] = isset($data['channelOpenId']) ? $data['channelOpenId'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
*
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets status
*
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status
*
* @param string $status 状态
*
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Gets errorCode
*
* @return string
*/
public function getErrorCode()
{
return $this->container['errorCode'];
}
/**
* Sets errorCode
*
* @param string $errorCode 错误码
*
* @return $this
*/
public function setErrorCode($errorCode)
{
$this->container['errorCode'] = $errorCode;
return $this;
}
/**
* Gets errorMsg
*
* @return string
*/
public function getErrorMsg()
{
return $this->container['errorMsg'];
}
/**
* Sets errorMsg
*
* @param string $errorMsg 错误描述
*
* @return $this
*/
public function setErrorMsg($errorMsg)
{
$this->container['errorMsg'] = $errorMsg;
return $this;
}
/**
* Gets merchantNo
*
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
*
* @param string $merchantNo 商户号
*
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
*
* @param string $requestNo 请求号
*
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Gets channelOpenId
*
* @return string
*/
public function getChannelOpenId()
{
return $this->container['channelOpenId'];
}
/**
* Sets channelOpenId
*
* @param string $channelOpenId 银行企业号
*
* @return $this
*/
public function setChannelOpenId($channelOpenId)
{
$this->container['channelOpenId'] = $channelOpenId;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param integer $offset Offset
*
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param integer $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param integer $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param integer $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,92 @@
<?php
namespace Yeepay\Yop\Sdk\Service\P2f\Model;
class CompanyFinanceAccountQueryRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
{
/**
* @var string
*/
private $channelCode;
/**
* @var string
*/
private $requestNo;
/**
* @var string
*/
private $merchantNo;
/**
* Gets channelCode
*
* @return string
*/
public function getChannelCode()
{
return $this->channelCode;
}
/**
* Sets channelCode
*
* @param string $channelCode
* @return CompanyFinanceAccountQueryRequest
*/
public function setChannelCode($channelCode)
{
$this->channelCode = $channelCode;
return $this;
}
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->requestNo;
}
/**
* Sets requestNo
*
* @param string $requestNo
* @return CompanyFinanceAccountQueryRequest
*/
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 CompanyFinanceAccountQueryRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
public static function getOperationId()
{
return 'companyFinanceAccountQuery';
}
}

View File

@@ -0,0 +1,86 @@
<?php
namespace Yeepay\Yop\Sdk\Service\P2f\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 CompanyFinanceAccountQueryRequestMarshaller implements RequestMarshaller
{
/**
* @var CompanyFinanceAccountQueryRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new CompanyFinanceAccountQueryRequestMarshaller();
}
/**
* @return CompanyFinanceAccountQueryRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'P2f';
/**
* @var string
*/
private $httpMethod = 'GET';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/p2f/company-finance/account/query';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param CompanyFinanceAccountQueryRequest $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->getChannelCode() != null){
$internalRequest->addParameter('channelCode', ObjectSerializer::sanitizeForSerialization($request->getChannelCode(), '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;
}
}
CompanyFinanceAccountQueryRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,742 @@
<?php
namespace Yeepay\Yop\Sdk\Service\P2f\Model;
class CompanyFinanceAccountRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
{
/**
* @var string
*/
private $compName;
/**
* @var string
*/
private $compNo;
/**
* @var string
*/
private $customerCertExpiry;
/**
* @var string
*/
private $regSerialNoExpired;
/**
* @var string
*/
private $compTelephone;
/**
* @var string
*/
private $orgSMSMobile;
/**
* @var string
*/
private $uniteCreditCode;
/**
* @var string
*/
private $compEmail;
/**
* @var string
*/
private $compAddr;
/**
* @var string
*/
private $zipCode;
/**
* @var string
*/
private $bizScope;
/**
* @var string
*/
private $legalName;
/**
* @var string
*/
private $legalIdNo;
/**
* @var string
*/
private $legalStartDate;
/**
* @var string
*/
private $legalExpiredDate;
/**
* @var string
*/
private $legalMobile;
/**
* @var string
*/
private $bankCode;
/**
* @var string
*/
private $bankName;
/**
* @var string
*/
private $bankCardNo;
/**
* @var string
*/
private $bindType;
/**
* @var string
*/
private $bindAcctBranch;
/**
* @var string
*/
private $threeInOneFlag;
/**
* @var string
*/
private $uniteCreditCodePath;
/**
* @var string
*/
private $frontPhotoPath;
/**
* @var string
*/
private $backPhotoPath;
/**
* @var string
*/
private $openAcctPermitCodePath;
/**
* @var string
*/
private $channelCode;
/**
* @var string
*/
private $requestNo;
/**
* @var string
*/
private $merchantNo;
/**
* Gets compName
*
* @return string
*/
public function getCompName()
{
return $this->compName;
}
/**
* Sets compName
*
* @param string $compName
* @return CompanyFinanceAccountRequest
*/
public function setCompName($compName)
{
$this->compName = $compName;
return $this;
}
/**
* Gets compNo
*
* @return string
*/
public function getCompNo()
{
return $this->compNo;
}
/**
* Sets compNo
*
* @param string $compNo
* @return CompanyFinanceAccountRequest
*/
public function setCompNo($compNo)
{
$this->compNo = $compNo;
return $this;
}
/**
* Gets customerCertExpiry
*
* @return string
*/
public function getCustomerCertExpiry()
{
return $this->customerCertExpiry;
}
/**
* Sets customerCertExpiry
*
* @param string $customerCertExpiry
* @return CompanyFinanceAccountRequest
*/
public function setCustomerCertExpiry($customerCertExpiry)
{
$this->customerCertExpiry = $customerCertExpiry;
return $this;
}
/**
* Gets regSerialNoExpired
*
* @return string
*/
public function getRegSerialNoExpired()
{
return $this->regSerialNoExpired;
}
/**
* Sets regSerialNoExpired
*
* @param string $regSerialNoExpired
* @return CompanyFinanceAccountRequest
*/
public function setRegSerialNoExpired($regSerialNoExpired)
{
$this->regSerialNoExpired = $regSerialNoExpired;
return $this;
}
/**
* Gets compTelephone
*
* @return string
*/
public function getCompTelephone()
{
return $this->compTelephone;
}
/**
* Sets compTelephone
*
* @param string $compTelephone
* @return CompanyFinanceAccountRequest
*/
public function setCompTelephone($compTelephone)
{
$this->compTelephone = $compTelephone;
return $this;
}
/**
* Gets orgSMSMobile
*
* @return string
*/
public function getOrgSMSMobile()
{
return $this->orgSMSMobile;
}
/**
* Sets orgSMSMobile
*
* @param string $orgSMSMobile
* @return CompanyFinanceAccountRequest
*/
public function setOrgSMSMobile($orgSMSMobile)
{
$this->orgSMSMobile = $orgSMSMobile;
return $this;
}
/**
* Gets uniteCreditCode
*
* @return string
*/
public function getUniteCreditCode()
{
return $this->uniteCreditCode;
}
/**
* Sets uniteCreditCode
*
* @param string $uniteCreditCode
* @return CompanyFinanceAccountRequest
*/
public function setUniteCreditCode($uniteCreditCode)
{
$this->uniteCreditCode = $uniteCreditCode;
return $this;
}
/**
* Gets compEmail
*
* @return string
*/
public function getCompEmail()
{
return $this->compEmail;
}
/**
* Sets compEmail
*
* @param string $compEmail
* @return CompanyFinanceAccountRequest
*/
public function setCompEmail($compEmail)
{
$this->compEmail = $compEmail;
return $this;
}
/**
* Gets compAddr
*
* @return string
*/
public function getCompAddr()
{
return $this->compAddr;
}
/**
* Sets compAddr
*
* @param string $compAddr
* @return CompanyFinanceAccountRequest
*/
public function setCompAddr($compAddr)
{
$this->compAddr = $compAddr;
return $this;
}
/**
* Gets zipCode
*
* @return string
*/
public function getZipCode()
{
return $this->zipCode;
}
/**
* Sets zipCode
*
* @param string $zipCode
* @return CompanyFinanceAccountRequest
*/
public function setZipCode($zipCode)
{
$this->zipCode = $zipCode;
return $this;
}
/**
* Gets bizScope
*
* @return string
*/
public function getBizScope()
{
return $this->bizScope;
}
/**
* Sets bizScope
*
* @param string $bizScope
* @return CompanyFinanceAccountRequest
*/
public function setBizScope($bizScope)
{
$this->bizScope = $bizScope;
return $this;
}
/**
* Gets legalName
*
* @return string
*/
public function getLegalName()
{
return $this->legalName;
}
/**
* Sets legalName
*
* @param string $legalName
* @return CompanyFinanceAccountRequest
*/
public function setLegalName($legalName)
{
$this->legalName = $legalName;
return $this;
}
/**
* Gets legalIdNo
*
* @return string
*/
public function getLegalIdNo()
{
return $this->legalIdNo;
}
/**
* Sets legalIdNo
*
* @param string $legalIdNo
* @return CompanyFinanceAccountRequest
*/
public function setLegalIdNo($legalIdNo)
{
$this->legalIdNo = $legalIdNo;
return $this;
}
/**
* Gets legalStartDate
*
* @return string
*/
public function getLegalStartDate()
{
return $this->legalStartDate;
}
/**
* Sets legalStartDate
*
* @param string $legalStartDate
* @return CompanyFinanceAccountRequest
*/
public function setLegalStartDate($legalStartDate)
{
$this->legalStartDate = $legalStartDate;
return $this;
}
/**
* Gets legalExpiredDate
*
* @return string
*/
public function getLegalExpiredDate()
{
return $this->legalExpiredDate;
}
/**
* Sets legalExpiredDate
*
* @param string $legalExpiredDate
* @return CompanyFinanceAccountRequest
*/
public function setLegalExpiredDate($legalExpiredDate)
{
$this->legalExpiredDate = $legalExpiredDate;
return $this;
}
/**
* Gets legalMobile
*
* @return string
*/
public function getLegalMobile()
{
return $this->legalMobile;
}
/**
* Sets legalMobile
*
* @param string $legalMobile
* @return CompanyFinanceAccountRequest
*/
public function setLegalMobile($legalMobile)
{
$this->legalMobile = $legalMobile;
return $this;
}
/**
* Gets bankCode
*
* @return string
*/
public function getBankCode()
{
return $this->bankCode;
}
/**
* Sets bankCode
*
* @param string $bankCode
* @return CompanyFinanceAccountRequest
*/
public function setBankCode($bankCode)
{
$this->bankCode = $bankCode;
return $this;
}
/**
* Gets bankName
*
* @return string
*/
public function getBankName()
{
return $this->bankName;
}
/**
* Sets bankName
*
* @param string $bankName
* @return CompanyFinanceAccountRequest
*/
public function setBankName($bankName)
{
$this->bankName = $bankName;
return $this;
}
/**
* Gets bankCardNo
*
* @return string
*/
public function getBankCardNo()
{
return $this->bankCardNo;
}
/**
* Sets bankCardNo
*
* @param string $bankCardNo
* @return CompanyFinanceAccountRequest
*/
public function setBankCardNo($bankCardNo)
{
$this->bankCardNo = $bankCardNo;
return $this;
}
/**
* Gets bindType
*
* @return string
*/
public function getBindType()
{
return $this->bindType;
}
/**
* Sets bindType
*
* @param string $bindType
* @return CompanyFinanceAccountRequest
*/
public function setBindType($bindType)
{
$this->bindType = $bindType;
return $this;
}
/**
* Gets bindAcctBranch
*
* @return string
*/
public function getBindAcctBranch()
{
return $this->bindAcctBranch;
}
/**
* Sets bindAcctBranch
*
* @param string $bindAcctBranch
* @return CompanyFinanceAccountRequest
*/
public function setBindAcctBranch($bindAcctBranch)
{
$this->bindAcctBranch = $bindAcctBranch;
return $this;
}
/**
* Gets threeInOneFlag
*
* @return string
*/
public function getThreeInOneFlag()
{
return $this->threeInOneFlag;
}
/**
* Sets threeInOneFlag
*
* @param string $threeInOneFlag
* @return CompanyFinanceAccountRequest
*/
public function setThreeInOneFlag($threeInOneFlag)
{
$this->threeInOneFlag = $threeInOneFlag;
return $this;
}
/**
* Gets uniteCreditCodePath
*
* @return string
*/
public function getUniteCreditCodePath()
{
return $this->uniteCreditCodePath;
}
/**
* Sets uniteCreditCodePath
*
* @param string $uniteCreditCodePath
* @return CompanyFinanceAccountRequest
*/
public function setUniteCreditCodePath($uniteCreditCodePath)
{
$this->uniteCreditCodePath = $uniteCreditCodePath;
return $this;
}
/**
* Gets frontPhotoPath
*
* @return string
*/
public function getFrontPhotoPath()
{
return $this->frontPhotoPath;
}
/**
* Sets frontPhotoPath
*
* @param string $frontPhotoPath
* @return CompanyFinanceAccountRequest
*/
public function setFrontPhotoPath($frontPhotoPath)
{
$this->frontPhotoPath = $frontPhotoPath;
return $this;
}
/**
* Gets backPhotoPath
*
* @return string
*/
public function getBackPhotoPath()
{
return $this->backPhotoPath;
}
/**
* Sets backPhotoPath
*
* @param string $backPhotoPath
* @return CompanyFinanceAccountRequest
*/
public function setBackPhotoPath($backPhotoPath)
{
$this->backPhotoPath = $backPhotoPath;
return $this;
}
/**
* Gets openAcctPermitCodePath
*
* @return string
*/
public function getOpenAcctPermitCodePath()
{
return $this->openAcctPermitCodePath;
}
/**
* Sets openAcctPermitCodePath
*
* @param string $openAcctPermitCodePath
* @return CompanyFinanceAccountRequest
*/
public function setOpenAcctPermitCodePath($openAcctPermitCodePath)
{
$this->openAcctPermitCodePath = $openAcctPermitCodePath;
return $this;
}
/**
* Gets channelCode
*
* @return string
*/
public function getChannelCode()
{
return $this->channelCode;
}
/**
* Sets channelCode
*
* @param string $channelCode
* @return CompanyFinanceAccountRequest
*/
public function setChannelCode($channelCode)
{
$this->channelCode = $channelCode;
return $this;
}
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->requestNo;
}
/**
* Sets requestNo
*
* @param string $requestNo
* @return CompanyFinanceAccountRequest
*/
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 CompanyFinanceAccountRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
public static function getOperationId()
{
return 'companyFinanceAccount';
}
}

View File

@@ -0,0 +1,164 @@
<?php
namespace Yeepay\Yop\Sdk\Service\P2f\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 CompanyFinanceAccountRequestMarshaller implements RequestMarshaller
{
/**
* @var CompanyFinanceAccountRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new CompanyFinanceAccountRequestMarshaller();
}
/**
* @return CompanyFinanceAccountRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'P2f';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/p2f/company-finance/account';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param CompanyFinanceAccountRequest $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->getCompName() != null){
$internalRequest->addParameter('compName', ObjectSerializer::sanitizeForSerialization($request->getCompName(), 'string'));
}
if($request->getCompNo() != null){
$internalRequest->addParameter('compNo', ObjectSerializer::sanitizeForSerialization($request->getCompNo(), 'string'));
}
if($request->getCustomerCertExpiry() != null){
$internalRequest->addParameter('customerCertExpiry', ObjectSerializer::sanitizeForSerialization($request->getCustomerCertExpiry(), 'string'));
}
if($request->getRegSerialNoExpired() != null){
$internalRequest->addParameter('regSerialNoExpired', ObjectSerializer::sanitizeForSerialization($request->getRegSerialNoExpired(), 'string'));
}
if($request->getCompTelephone() != null){
$internalRequest->addParameter('compTelephone', ObjectSerializer::sanitizeForSerialization($request->getCompTelephone(), 'string'));
}
if($request->getOrgSMSMobile() != null){
$internalRequest->addParameter('orgSMSMobile', ObjectSerializer::sanitizeForSerialization($request->getOrgSMSMobile(), 'string'));
}
if($request->getUniteCreditCode() != null){
$internalRequest->addParameter('uniteCreditCode', ObjectSerializer::sanitizeForSerialization($request->getUniteCreditCode(), 'string'));
}
if($request->getCompEmail() != null){
$internalRequest->addParameter('compEmail', ObjectSerializer::sanitizeForSerialization($request->getCompEmail(), 'string'));
}
if($request->getCompAddr() != null){
$internalRequest->addParameter('compAddr', ObjectSerializer::sanitizeForSerialization($request->getCompAddr(), 'string'));
}
if($request->getZipCode() != null){
$internalRequest->addParameter('zipCode', ObjectSerializer::sanitizeForSerialization($request->getZipCode(), 'string'));
}
if($request->getBizScope() != null){
$internalRequest->addParameter('bizScope', ObjectSerializer::sanitizeForSerialization($request->getBizScope(), 'string'));
}
if($request->getLegalName() != null){
$internalRequest->addParameter('legalName', ObjectSerializer::sanitizeForSerialization($request->getLegalName(), 'string'));
}
if($request->getLegalIdNo() != null){
$internalRequest->addParameter('legalIdNo', ObjectSerializer::sanitizeForSerialization($request->getLegalIdNo(), 'string'));
}
if($request->getLegalStartDate() != null){
$internalRequest->addParameter('legalStartDate', ObjectSerializer::sanitizeForSerialization($request->getLegalStartDate(), 'string'));
}
if($request->getLegalExpiredDate() != null){
$internalRequest->addParameter('legalExpiredDate', ObjectSerializer::sanitizeForSerialization($request->getLegalExpiredDate(), 'string'));
}
if($request->getLegalMobile() != null){
$internalRequest->addParameter('legalMobile', ObjectSerializer::sanitizeForSerialization($request->getLegalMobile(), 'string'));
}
if($request->getBankCode() != null){
$internalRequest->addParameter('bankCode', ObjectSerializer::sanitizeForSerialization($request->getBankCode(), 'string'));
}
if($request->getBankName() != null){
$internalRequest->addParameter('bankName', ObjectSerializer::sanitizeForSerialization($request->getBankName(), 'string'));
}
if($request->getBankCardNo() != null){
$internalRequest->addParameter('bankCardNo', ObjectSerializer::sanitizeForSerialization($request->getBankCardNo(), 'string'));
}
if($request->getBindType() != null){
$internalRequest->addParameter('bindType', ObjectSerializer::sanitizeForSerialization($request->getBindType(), 'string'));
}
if($request->getBindAcctBranch() != null){
$internalRequest->addParameter('bindAcctBranch', ObjectSerializer::sanitizeForSerialization($request->getBindAcctBranch(), 'string'));
}
if($request->getThreeInOneFlag() != null){
$internalRequest->addParameter('threeInOneFlag', ObjectSerializer::sanitizeForSerialization($request->getThreeInOneFlag(), 'string'));
}
if($request->getUniteCreditCodePath() != null){
$internalRequest->addParameter('uniteCreditCodePath', ObjectSerializer::sanitizeForSerialization($request->getUniteCreditCodePath(), 'string'));
}
if($request->getFrontPhotoPath() != null){
$internalRequest->addParameter('frontPhotoPath', ObjectSerializer::sanitizeForSerialization($request->getFrontPhotoPath(), 'string'));
}
if($request->getBackPhotoPath() != null){
$internalRequest->addParameter('backPhotoPath', ObjectSerializer::sanitizeForSerialization($request->getBackPhotoPath(), 'string'));
}
if($request->getOpenAcctPermitCodePath() != null){
$internalRequest->addParameter('openAcctPermitCodePath', ObjectSerializer::sanitizeForSerialization($request->getOpenAcctPermitCodePath(), 'string'));
}
if($request->getChannelCode() != null){
$internalRequest->addParameter('channelCode', ObjectSerializer::sanitizeForSerialization($request->getChannelCode(), '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;
}
}
CompanyFinanceAccountRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,512 @@
<?php
/**
* CompanyFinanceAssetsQueryCompQueryAssetsResponseDTOResult
*
* 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\P2f\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* CompanyFinanceAssetsQueryCompQueryAssetsResponseDTOResult Class Doc Comment
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class CompanyFinanceAssetsQueryCompQueryAssetsResponseDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CompanyFinanceAssetsQueryCompQueryAssetsResponseDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'status' => 'string',
'errorCode' => 'string',
'errorMsg' => 'string',
'channelNo' => 'string',
'assetsAmount' => 'float',
'totalProfitAmount' => 'float',
'yesterdayProfit' => 'float',
'availableBal' => 'float'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'status' => null,
'errorCode' => null,
'errorMsg' => null,
'channelNo' => null,
'assetsAmount' => null,
'totalProfitAmount' => null,
'yesterdayProfit' => null,
'availableBal' => null
];
/**
* Array of property to type mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @var string[]
*/
protected static $attributeMap = [
'status' => 'status',
'errorCode' => 'errorCode',
'errorMsg' => 'errorMsg',
'channelNo' => 'channelNo',
'assetsAmount' => 'assetsAmount',
'totalProfitAmount' => 'totalProfitAmount',
'yesterdayProfit' => 'yesterdayProfit',
'availableBal' => 'availableBal'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'status' => 'setStatus',
'errorCode' => 'setErrorCode',
'errorMsg' => 'setErrorMsg',
'channelNo' => 'setChannelNo',
'assetsAmount' => 'setAssetsAmount',
'totalProfitAmount' => 'setTotalProfitAmount',
'yesterdayProfit' => 'setYesterdayProfit',
'availableBal' => 'setAvailableBal'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'status' => 'getStatus',
'errorCode' => 'getErrorCode',
'errorMsg' => 'getErrorMsg',
'channelNo' => 'getChannelNo',
'assetsAmount' => 'getAssetsAmount',
'totalProfitAmount' => 'getTotalProfitAmount',
'yesterdayProfit' => 'getYesterdayProfit',
'availableBal' => 'getAvailableBal'
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['errorCode'] = isset($data['errorCode']) ? $data['errorCode'] : null;
$this->container['errorMsg'] = isset($data['errorMsg']) ? $data['errorMsg'] : null;
$this->container['channelNo'] = isset($data['channelNo']) ? $data['channelNo'] : null;
$this->container['assetsAmount'] = isset($data['assetsAmount']) ? $data['assetsAmount'] : null;
$this->container['totalProfitAmount'] = isset($data['totalProfitAmount']) ? $data['totalProfitAmount'] : null;
$this->container['yesterdayProfit'] = isset($data['yesterdayProfit']) ? $data['yesterdayProfit'] : null;
$this->container['availableBal'] = isset($data['availableBal']) ? $data['availableBal'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
*
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets status
*
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status
*
* @param string $status 状态
*
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Gets errorCode
*
* @return string
*/
public function getErrorCode()
{
return $this->container['errorCode'];
}
/**
* Sets errorCode
*
* @param string $errorCode 错误码
*
* @return $this
*/
public function setErrorCode($errorCode)
{
$this->container['errorCode'] = $errorCode;
return $this;
}
/**
* Gets errorMsg
*
* @return string
*/
public function getErrorMsg()
{
return $this->container['errorMsg'];
}
/**
* Sets errorMsg
*
* @param string $errorMsg 错误描述
*
* @return $this
*/
public function setErrorMsg($errorMsg)
{
$this->container['errorMsg'] = $errorMsg;
return $this;
}
/**
* Gets channelNo
*
* @return string
*/
public function getChannelNo()
{
return $this->container['channelNo'];
}
/**
* Sets channelNo
*
* @param string $channelNo 渠道号
*
* @return $this
*/
public function setChannelNo($channelNo)
{
$this->container['channelNo'] = $channelNo;
return $this;
}
/**
* Gets assetsAmount
*
* @return float
*/
public function getAssetsAmount()
{
return $this->container['assetsAmount'];
}
/**
* Sets assetsAmount
*
* @param float $assetsAmount 企业号可用资产
*
* @return $this
*/
public function setAssetsAmount($assetsAmount)
{
$this->container['assetsAmount'] = $assetsAmount;
return $this;
}
/**
* Gets totalProfitAmount
*
* @return float
*/
public function getTotalProfitAmount()
{
return $this->container['totalProfitAmount'];
}
/**
* Sets totalProfitAmount
*
* @param float $totalProfitAmount 累计收益
*
* @return $this
*/
public function setTotalProfitAmount($totalProfitAmount)
{
$this->container['totalProfitAmount'] = $totalProfitAmount;
return $this;
}
/**
* Gets yesterdayProfit
*
* @return float
*/
public function getYesterdayProfit()
{
return $this->container['yesterdayProfit'];
}
/**
* Sets yesterdayProfit
*
* @param float $yesterdayProfit 昨日收益
*
* @return $this
*/
public function setYesterdayProfit($yesterdayProfit)
{
$this->container['yesterdayProfit'] = $yesterdayProfit;
return $this;
}
/**
* Gets availableBal
*
* @return float
*/
public function getAvailableBal()
{
return $this->container['availableBal'];
}
/**
* Sets availableBal
*
* @param float $availableBal 可用余额
*
* @return $this
*/
public function setAvailableBal($availableBal)
{
$this->container['availableBal'] = $availableBal;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param integer $offset Offset
*
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param integer $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param integer $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param integer $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,92 @@
<?php
namespace Yeepay\Yop\Sdk\Service\P2f\Model;
class CompanyFinanceAssetsQueryRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
{
/**
* @var string
*/
private $channelCode;
/**
* @var string
*/
private $requestNo;
/**
* @var string
*/
private $merchantNo;
/**
* Gets channelCode
*
* @return string
*/
public function getChannelCode()
{
return $this->channelCode;
}
/**
* Sets channelCode
*
* @param string $channelCode
* @return CompanyFinanceAssetsQueryRequest
*/
public function setChannelCode($channelCode)
{
$this->channelCode = $channelCode;
return $this;
}
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->requestNo;
}
/**
* Sets requestNo
*
* @param string $requestNo
* @return CompanyFinanceAssetsQueryRequest
*/
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 CompanyFinanceAssetsQueryRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
public static function getOperationId()
{
return 'companyFinanceAssetsQuery';
}
}

View File

@@ -0,0 +1,86 @@
<?php
namespace Yeepay\Yop\Sdk\Service\P2f\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 CompanyFinanceAssetsQueryRequestMarshaller implements RequestMarshaller
{
/**
* @var CompanyFinanceAssetsQueryRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new CompanyFinanceAssetsQueryRequestMarshaller();
}
/**
* @return CompanyFinanceAssetsQueryRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'P2f';
/**
* @var string
*/
private $httpMethod = 'GET';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/p2f/company-finance/assets/query';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param CompanyFinanceAssetsQueryRequest $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->getChannelCode() != null){
$internalRequest->addParameter('channelCode', ObjectSerializer::sanitizeForSerialization($request->getChannelCode(), '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;
}
}
CompanyFinanceAssetsQueryRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,422 @@
<?php
/**
* CompanyFinanceOrderQueryCompQueryOrderStatusResponseDTOResult
*
* 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\P2f\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* CompanyFinanceOrderQueryCompQueryOrderStatusResponseDTOResult Class Doc Comment
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class CompanyFinanceOrderQueryCompQueryOrderStatusResponseDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CompanyFinanceOrderQueryCompQueryOrderStatusResponseDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'status' => 'string',
'errorCode' => 'string',
'errorMsg' => 'string',
'merchantNo' => 'string',
'requestNo' => 'string'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'status' => null,
'errorCode' => null,
'errorMsg' => null,
'merchantNo' => null,
'requestNo' => null
];
/**
* Array of property to type mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @var string[]
*/
protected static $attributeMap = [
'status' => 'status',
'errorCode' => 'errorCode',
'errorMsg' => 'errorMsg',
'merchantNo' => 'merchantNo',
'requestNo' => 'requestNo'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'status' => 'setStatus',
'errorCode' => 'setErrorCode',
'errorMsg' => 'setErrorMsg',
'merchantNo' => 'setMerchantNo',
'requestNo' => 'setRequestNo'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'status' => 'getStatus',
'errorCode' => 'getErrorCode',
'errorMsg' => 'getErrorMsg',
'merchantNo' => 'getMerchantNo',
'requestNo' => 'getRequestNo'
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['errorCode'] = isset($data['errorCode']) ? $data['errorCode'] : null;
$this->container['errorMsg'] = isset($data['errorMsg']) ? $data['errorMsg'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
*
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets status
*
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status
*
* @param string $status 状态
*
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Gets errorCode
*
* @return string
*/
public function getErrorCode()
{
return $this->container['errorCode'];
}
/**
* Sets errorCode
*
* @param string $errorCode 错误码
*
* @return $this
*/
public function setErrorCode($errorCode)
{
$this->container['errorCode'] = $errorCode;
return $this;
}
/**
* Gets errorMsg
*
* @return string
*/
public function getErrorMsg()
{
return $this->container['errorMsg'];
}
/**
* Sets errorMsg
*
* @param string $errorMsg 错误描述
*
* @return $this
*/
public function setErrorMsg($errorMsg)
{
$this->container['errorMsg'] = $errorMsg;
return $this;
}
/**
* Gets merchantNo
*
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
*
* @param string $merchantNo 商户号
*
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
*
* @param string $requestNo 请求号
*
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param integer $offset Offset
*
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param integer $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param integer $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param integer $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,117 @@
<?php
namespace Yeepay\Yop\Sdk\Service\P2f\Model;
class CompanyFinanceOrderQueryRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
{
/**
* @var string
*/
private $bizType;
/**
* @var string
*/
private $channelCode;
/**
* @var string
*/
private $requestNo;
/**
* @var string
*/
private $merchantNo;
/**
* Gets bizType
*
* @return string
*/
public function getBizType()
{
return $this->bizType;
}
/**
* Sets bizType
*
* @param string $bizType
* @return CompanyFinanceOrderQueryRequest
*/
public function setBizType($bizType)
{
$this->bizType = $bizType;
return $this;
}
/**
* Gets channelCode
*
* @return string
*/
public function getChannelCode()
{
return $this->channelCode;
}
/**
* Sets channelCode
*
* @param string $channelCode
* @return CompanyFinanceOrderQueryRequest
*/
public function setChannelCode($channelCode)
{
$this->channelCode = $channelCode;
return $this;
}
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->requestNo;
}
/**
* Sets requestNo
*
* @param string $requestNo
* @return CompanyFinanceOrderQueryRequest
*/
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 CompanyFinanceOrderQueryRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
public static function getOperationId()
{
return 'companyFinanceOrderQuery';
}
}

View File

@@ -0,0 +1,89 @@
<?php
namespace Yeepay\Yop\Sdk\Service\P2f\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 CompanyFinanceOrderQueryRequestMarshaller implements RequestMarshaller
{
/**
* @var CompanyFinanceOrderQueryRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new CompanyFinanceOrderQueryRequestMarshaller();
}
/**
* @return CompanyFinanceOrderQueryRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'P2f';
/**
* @var string
*/
private $httpMethod = 'GET';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/p2f/company-finance/order/query';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param CompanyFinanceOrderQueryRequest $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->getBizType() != null){
$internalRequest->addParameter('bizType', ObjectSerializer::sanitizeForSerialization($request->getBizType(), 'string'));
}
if($request->getChannelCode() != null){
$internalRequest->addParameter('channelCode', ObjectSerializer::sanitizeForSerialization($request->getChannelCode(), '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;
}
}
CompanyFinanceOrderQueryRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,422 @@
<?php
/**
* CompanyFinancePurchaseOrderCompTranPurchaseRspDTOResult
*
* 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\P2f\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* CompanyFinancePurchaseOrderCompTranPurchaseRspDTOResult Class Doc Comment
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class CompanyFinancePurchaseOrderCompTranPurchaseRspDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CompanyFinancePurchaseOrderCompTranPurchaseRspDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'status' => 'string',
'errorCode' => 'string',
'errorMsg' => 'string',
'merchantNo' => 'string',
'requestNo' => 'string'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'status' => null,
'errorCode' => null,
'errorMsg' => null,
'merchantNo' => null,
'requestNo' => null
];
/**
* Array of property to type mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @var string[]
*/
protected static $attributeMap = [
'status' => 'status',
'errorCode' => 'errorCode',
'errorMsg' => 'errorMsg',
'merchantNo' => 'merchantNo',
'requestNo' => 'requestNo'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'status' => 'setStatus',
'errorCode' => 'setErrorCode',
'errorMsg' => 'setErrorMsg',
'merchantNo' => 'setMerchantNo',
'requestNo' => 'setRequestNo'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'status' => 'getStatus',
'errorCode' => 'getErrorCode',
'errorMsg' => 'getErrorMsg',
'merchantNo' => 'getMerchantNo',
'requestNo' => 'getRequestNo'
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['errorCode'] = isset($data['errorCode']) ? $data['errorCode'] : null;
$this->container['errorMsg'] = isset($data['errorMsg']) ? $data['errorMsg'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
*
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets status
*
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status
*
* @param string $status 状态
*
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Gets errorCode
*
* @return string
*/
public function getErrorCode()
{
return $this->container['errorCode'];
}
/**
* Sets errorCode
*
* @param string $errorCode 错误码
*
* @return $this
*/
public function setErrorCode($errorCode)
{
$this->container['errorCode'] = $errorCode;
return $this;
}
/**
* Gets errorMsg
*
* @return string
*/
public function getErrorMsg()
{
return $this->container['errorMsg'];
}
/**
* Sets errorMsg
*
* @param string $errorMsg 错误消息
*
* @return $this
*/
public function setErrorMsg($errorMsg)
{
$this->container['errorMsg'] = $errorMsg;
return $this;
}
/**
* Gets merchantNo
*
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
*
* @param string $merchantNo 商户号
*
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
*
* @param string $requestNo 请求号
*
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param integer $offset Offset
*
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param integer $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param integer $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param integer $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,167 @@
<?php
namespace Yeepay\Yop\Sdk\Service\P2f\Model;
class CompanyFinancePurchaseOrderRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
{
/**
* @var string
*/
private $prodCode;
/**
* @var float
*/
private $amount;
/**
* @var string
*/
private $channelCode;
/**
* @var string
*/
private $requestNo;
/**
* @var string
*/
private $merchantNo;
/**
* @var string
*/
private $p2fOpenAcctNo;
/**
* Gets prodCode
*
* @return string
*/
public function getProdCode()
{
return $this->prodCode;
}
/**
* Sets prodCode
*
* @param string $prodCode
* @return CompanyFinancePurchaseOrderRequest
*/
public function setProdCode($prodCode)
{
$this->prodCode = $prodCode;
return $this;
}
/**
* Gets amount
*
* @return float
*/
public function getAmount()
{
return $this->amount;
}
/**
* Sets amount
*
* @param float $amount
* @return CompanyFinancePurchaseOrderRequest
*/
public function setAmount($amount)
{
$this->amount = $amount;
return $this;
}
/**
* Gets channelCode
*
* @return string
*/
public function getChannelCode()
{
return $this->channelCode;
}
/**
* Sets channelCode
*
* @param string $channelCode
* @return CompanyFinancePurchaseOrderRequest
*/
public function setChannelCode($channelCode)
{
$this->channelCode = $channelCode;
return $this;
}
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->requestNo;
}
/**
* Sets requestNo
*
* @param string $requestNo
* @return CompanyFinancePurchaseOrderRequest
*/
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 CompanyFinancePurchaseOrderRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
/**
* Gets p2fOpenAcctNo
*
* @return string
*/
public function getP2fOpenAcctNo()
{
return $this->p2fOpenAcctNo;
}
/**
* Sets p2fOpenAcctNo
*
* @param string $p2fOpenAcctNo
* @return CompanyFinancePurchaseOrderRequest
*/
public function setP2fOpenAcctNo($p2fOpenAcctNo)
{
$this->p2fOpenAcctNo = $p2fOpenAcctNo;
return $this;
}
public static function getOperationId()
{
return 'companyFinancePurchaseOrder';
}
}

View File

@@ -0,0 +1,95 @@
<?php
namespace Yeepay\Yop\Sdk\Service\P2f\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 CompanyFinancePurchaseOrderRequestMarshaller implements RequestMarshaller
{
/**
* @var CompanyFinancePurchaseOrderRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new CompanyFinancePurchaseOrderRequestMarshaller();
}
/**
* @return CompanyFinancePurchaseOrderRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'P2f';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/p2f/company-finance/purchase-order';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param CompanyFinancePurchaseOrderRequest $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->getProdCode() != null){
$internalRequest->addParameter('prodCode', ObjectSerializer::sanitizeForSerialization($request->getProdCode(), 'string'));
}
if($request->getAmount() != null){
$internalRequest->addParameter('amount', ObjectSerializer::sanitizeForSerialization($request->getAmount(), 'float'));
}
if($request->getChannelCode() != null){
$internalRequest->addParameter('channelCode', ObjectSerializer::sanitizeForSerialization($request->getChannelCode(), '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->getP2fOpenAcctNo() != null){
$internalRequest->addParameter('p2fOpenAcctNo', ObjectSerializer::sanitizeForSerialization($request->getP2fOpenAcctNo(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
CompanyFinancePurchaseOrderRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,422 @@
<?php
/**
* CompanyFinanceRedeemOrderCompTranRedeemRspDTOResult
*
* 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\P2f\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* CompanyFinanceRedeemOrderCompTranRedeemRspDTOResult Class Doc Comment
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class CompanyFinanceRedeemOrderCompTranRedeemRspDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CompanyFinanceRedeemOrderCompTranRedeemRspDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'status' => 'string',
'errorCode' => 'string',
'errorMsg' => 'string',
'merchantNo' => 'string',
'requestNo' => 'string'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'status' => null,
'errorCode' => null,
'errorMsg' => null,
'merchantNo' => null,
'requestNo' => null
];
/**
* Array of property to type mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @var string[]
*/
protected static $attributeMap = [
'status' => 'status',
'errorCode' => 'errorCode',
'errorMsg' => 'errorMsg',
'merchantNo' => 'merchantNo',
'requestNo' => 'requestNo'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'status' => 'setStatus',
'errorCode' => 'setErrorCode',
'errorMsg' => 'setErrorMsg',
'merchantNo' => 'setMerchantNo',
'requestNo' => 'setRequestNo'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'status' => 'getStatus',
'errorCode' => 'getErrorCode',
'errorMsg' => 'getErrorMsg',
'merchantNo' => 'getMerchantNo',
'requestNo' => 'getRequestNo'
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['errorCode'] = isset($data['errorCode']) ? $data['errorCode'] : null;
$this->container['errorMsg'] = isset($data['errorMsg']) ? $data['errorMsg'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
*
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets status
*
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status
*
* @param string $status 状态
*
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Gets errorCode
*
* @return string
*/
public function getErrorCode()
{
return $this->container['errorCode'];
}
/**
* Sets errorCode
*
* @param string $errorCode 错误码
*
* @return $this
*/
public function setErrorCode($errorCode)
{
$this->container['errorCode'] = $errorCode;
return $this;
}
/**
* Gets errorMsg
*
* @return string
*/
public function getErrorMsg()
{
return $this->container['errorMsg'];
}
/**
* Sets errorMsg
*
* @param string $errorMsg 错误描述
*
* @return $this
*/
public function setErrorMsg($errorMsg)
{
$this->container['errorMsg'] = $errorMsg;
return $this;
}
/**
* Gets merchantNo
*
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
*
* @param string $merchantNo 商户号
*
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
*
* @param string $requestNo 请求号
*
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param integer $offset Offset
*
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param integer $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param integer $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param integer $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,267 @@
<?php
namespace Yeepay\Yop\Sdk\Service\P2f\Model;
class CompanyFinanceRedeemOrderRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
{
/**
* @var string
*/
private $p2fOpenAcctNo;
/**
* @var string
*/
private $prodCode;
/**
* @var float
*/
private $amount;
/**
* @var string
*/
private $remark;
/**
* @var string
*/
private $channelCode;
/**
* @var string
*/
private $requestNo;
/**
* @var string
*/
private $merchantNo;
/**
* @var string
*/
private $notifyUrl;
/**
* @var string
*/
private $p2fOrderId;
/**
* @var string
*/
private $requestTime;
/**
* Gets p2fOpenAcctNo
*
* @return string
*/
public function getP2fOpenAcctNo()
{
return $this->p2fOpenAcctNo;
}
/**
* Sets p2fOpenAcctNo
*
* @param string $p2fOpenAcctNo
* @return CompanyFinanceRedeemOrderRequest
*/
public function setP2fOpenAcctNo($p2fOpenAcctNo)
{
$this->p2fOpenAcctNo = $p2fOpenAcctNo;
return $this;
}
/**
* Gets prodCode
*
* @return string
*/
public function getProdCode()
{
return $this->prodCode;
}
/**
* Sets prodCode
*
* @param string $prodCode
* @return CompanyFinanceRedeemOrderRequest
*/
public function setProdCode($prodCode)
{
$this->prodCode = $prodCode;
return $this;
}
/**
* Gets amount
*
* @return float
*/
public function getAmount()
{
return $this->amount;
}
/**
* Sets amount
*
* @param float $amount
* @return CompanyFinanceRedeemOrderRequest
*/
public function setAmount($amount)
{
$this->amount = $amount;
return $this;
}
/**
* Gets remark
*
* @return string
*/
public function getRemark()
{
return $this->remark;
}
/**
* Sets remark
*
* @param string $remark
* @return CompanyFinanceRedeemOrderRequest
*/
public function setRemark($remark)
{
$this->remark = $remark;
return $this;
}
/**
* Gets channelCode
*
* @return string
*/
public function getChannelCode()
{
return $this->channelCode;
}
/**
* Sets channelCode
*
* @param string $channelCode
* @return CompanyFinanceRedeemOrderRequest
*/
public function setChannelCode($channelCode)
{
$this->channelCode = $channelCode;
return $this;
}
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->requestNo;
}
/**
* Sets requestNo
*
* @param string $requestNo
* @return CompanyFinanceRedeemOrderRequest
*/
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 CompanyFinanceRedeemOrderRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
/**
* Gets notifyUrl
*
* @return string
*/
public function getNotifyUrl()
{
return $this->notifyUrl;
}
/**
* Sets notifyUrl
*
* @param string $notifyUrl
* @return CompanyFinanceRedeemOrderRequest
*/
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl = $notifyUrl;
return $this;
}
/**
* Gets p2fOrderId
*
* @return string
*/
public function getP2fOrderId()
{
return $this->p2fOrderId;
}
/**
* Sets p2fOrderId
*
* @param string $p2fOrderId
* @return CompanyFinanceRedeemOrderRequest
*/
public function setP2fOrderId($p2fOrderId)
{
$this->p2fOrderId = $p2fOrderId;
return $this;
}
/**
* Gets requestTime
*
* @return string
*/
public function getRequestTime()
{
return $this->requestTime;
}
/**
* Sets requestTime
*
* @param string $requestTime
* @return CompanyFinanceRedeemOrderRequest
*/
public function setRequestTime($requestTime)
{
$this->requestTime = $requestTime;
return $this;
}
public static function getOperationId()
{
return 'companyFinanceRedeemOrder';
}
}

View File

@@ -0,0 +1,107 @@
<?php
namespace Yeepay\Yop\Sdk\Service\P2f\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 CompanyFinanceRedeemOrderRequestMarshaller implements RequestMarshaller
{
/**
* @var CompanyFinanceRedeemOrderRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new CompanyFinanceRedeemOrderRequestMarshaller();
}
/**
* @return CompanyFinanceRedeemOrderRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'P2f';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/p2f/company-finance/redeem-order';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param CompanyFinanceRedeemOrderRequest $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->getP2fOpenAcctNo() != null){
$internalRequest->addParameter('p2fOpenAcctNo', ObjectSerializer::sanitizeForSerialization($request->getP2fOpenAcctNo(), 'string'));
}
if($request->getProdCode() != null){
$internalRequest->addParameter('prodCode', ObjectSerializer::sanitizeForSerialization($request->getProdCode(), 'string'));
}
if($request->getAmount() != null){
$internalRequest->addParameter('amount', ObjectSerializer::sanitizeForSerialization($request->getAmount(), 'float'));
}
if($request->getRemark() != null){
$internalRequest->addParameter('remark', ObjectSerializer::sanitizeForSerialization($request->getRemark(), 'string'));
}
if($request->getChannelCode() != null){
$internalRequest->addParameter('channelCode', ObjectSerializer::sanitizeForSerialization($request->getChannelCode(), '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->getNotifyUrl() != null){
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string'));
}
if($request->getP2fOrderId() != null){
$internalRequest->addParameter('p2fOrderId', ObjectSerializer::sanitizeForSerialization($request->getP2fOrderId(), 'string'));
}
if($request->getRequestTime() != null){
$internalRequest->addParameter('requestTime', ObjectSerializer::sanitizeForSerialization($request->getRequestTime(), 'string', 'date-time'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
CompanyFinanceRedeemOrderRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,422 @@
<?php
/**
* CompanyFinanceSmallPaymentCompCustOpenAcctConfirmRspDTOResult
*
* 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\P2f\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* CompanyFinanceSmallPaymentCompCustOpenAcctConfirmRspDTOResult Class Doc Comment
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class CompanyFinanceSmallPaymentCompCustOpenAcctConfirmRspDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CompanyFinanceSmallPaymentCompCustOpenAcctConfirmRspDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'status' => 'string',
'errorCode' => 'string',
'errorMsg' => 'string',
'merchantNo' => 'string',
'requestNo' => 'string'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'status' => null,
'errorCode' => null,
'errorMsg' => null,
'merchantNo' => null,
'requestNo' => null
];
/**
* Array of property to type mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @var string[]
*/
protected static $attributeMap = [
'status' => 'status',
'errorCode' => 'errorCode',
'errorMsg' => 'errorMsg',
'merchantNo' => 'merchantNo',
'requestNo' => 'requestNo'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'status' => 'setStatus',
'errorCode' => 'setErrorCode',
'errorMsg' => 'setErrorMsg',
'merchantNo' => 'setMerchantNo',
'requestNo' => 'setRequestNo'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'status' => 'getStatus',
'errorCode' => 'getErrorCode',
'errorMsg' => 'getErrorMsg',
'merchantNo' => 'getMerchantNo',
'requestNo' => 'getRequestNo'
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['errorCode'] = isset($data['errorCode']) ? $data['errorCode'] : null;
$this->container['errorMsg'] = isset($data['errorMsg']) ? $data['errorMsg'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
*
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets status
*
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status
*
* @param string $status 状态
*
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Gets errorCode
*
* @return string
*/
public function getErrorCode()
{
return $this->container['errorCode'];
}
/**
* Sets errorCode
*
* @param string $errorCode 错误码
*
* @return $this
*/
public function setErrorCode($errorCode)
{
$this->container['errorCode'] = $errorCode;
return $this;
}
/**
* Gets errorMsg
*
* @return string
*/
public function getErrorMsg()
{
return $this->container['errorMsg'];
}
/**
* Sets errorMsg
*
* @param string $errorMsg 错误描述
*
* @return $this
*/
public function setErrorMsg($errorMsg)
{
$this->container['errorMsg'] = $errorMsg;
return $this;
}
/**
* Gets merchantNo
*
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
*
* @param string $merchantNo 商户号
*
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
*
* @param string $requestNo 请求号
*
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param integer $offset Offset
*
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param integer $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param integer $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param integer $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,117 @@
<?php
namespace Yeepay\Yop\Sdk\Service\P2f\Model;
class CompanyFinanceSmallPaymentRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
{
/**
* @var string
*/
private $confirmCheckCode;
/**
* @var string
*/
private $channelCode;
/**
* @var string
*/
private $requestNo;
/**
* @var string
*/
private $merchantNo;
/**
* Gets confirmCheckCode
*
* @return string
*/
public function getConfirmCheckCode()
{
return $this->confirmCheckCode;
}
/**
* Sets confirmCheckCode
*
* @param string $confirmCheckCode
* @return CompanyFinanceSmallPaymentRequest
*/
public function setConfirmCheckCode($confirmCheckCode)
{
$this->confirmCheckCode = $confirmCheckCode;
return $this;
}
/**
* Gets channelCode
*
* @return string
*/
public function getChannelCode()
{
return $this->channelCode;
}
/**
* Sets channelCode
*
* @param string $channelCode
* @return CompanyFinanceSmallPaymentRequest
*/
public function setChannelCode($channelCode)
{
$this->channelCode = $channelCode;
return $this;
}
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->requestNo;
}
/**
* Sets requestNo
*
* @param string $requestNo
* @return CompanyFinanceSmallPaymentRequest
*/
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 CompanyFinanceSmallPaymentRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
public static function getOperationId()
{
return 'companyFinanceSmallPayment';
}
}

View File

@@ -0,0 +1,89 @@
<?php
namespace Yeepay\Yop\Sdk\Service\P2f\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 CompanyFinanceSmallPaymentRequestMarshaller implements RequestMarshaller
{
/**
* @var CompanyFinanceSmallPaymentRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new CompanyFinanceSmallPaymentRequestMarshaller();
}
/**
* @return CompanyFinanceSmallPaymentRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'P2f';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/p2f/company-finance/small-payment';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param CompanyFinanceSmallPaymentRequest $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->getConfirmCheckCode() != null){
$internalRequest->addParameter('confirmCheckCode', ObjectSerializer::sanitizeForSerialization($request->getConfirmCheckCode(), 'string'));
}
if($request->getChannelCode() != null){
$internalRequest->addParameter('channelCode', ObjectSerializer::sanitizeForSerialization($request->getChannelCode(), '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;
}
}
CompanyFinanceSmallPaymentRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,452 @@
<?php
/**
* CompanyFinanceTransactionQueryCompQueryTransactionListResponseDTOResult
*
* 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\P2f\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* CompanyFinanceTransactionQueryCompQueryTransactionListResponseDTOResult Class Doc Comment
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class CompanyFinanceTransactionQueryCompQueryTransactionListResponseDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CompanyFinanceTransactionQueryCompQueryTransactionListResponseDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'status' => 'string',
'errorCode' => 'string',
'errorMsg' => 'string',
'merchantNo' => 'string',
'requestNo' => 'string',
'compTransactionVO' => '\Yeepay\Yop\Sdk\Service\P2f\Model\CompanyFinanceTransactionQueryCompTransactionVOResult'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'status' => null,
'errorCode' => null,
'errorMsg' => null,
'merchantNo' => null,
'requestNo' => null,
'compTransactionVO' => null
];
/**
* Array of property to type mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @var string[]
*/
protected static $attributeMap = [
'status' => 'status',
'errorCode' => 'errorCode',
'errorMsg' => 'errorMsg',
'merchantNo' => 'merchantNo',
'requestNo' => 'requestNo',
'compTransactionVO' => 'compTransactionVO'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'status' => 'setStatus',
'errorCode' => 'setErrorCode',
'errorMsg' => 'setErrorMsg',
'merchantNo' => 'setMerchantNo',
'requestNo' => 'setRequestNo',
'compTransactionVO' => 'setCompTransactionVO'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'status' => 'getStatus',
'errorCode' => 'getErrorCode',
'errorMsg' => 'getErrorMsg',
'merchantNo' => 'getMerchantNo',
'requestNo' => 'getRequestNo',
'compTransactionVO' => 'getCompTransactionVO'
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['errorCode'] = isset($data['errorCode']) ? $data['errorCode'] : null;
$this->container['errorMsg'] = isset($data['errorMsg']) ? $data['errorMsg'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
$this->container['compTransactionVO'] = isset($data['compTransactionVO']) ? $data['compTransactionVO'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
*
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets status
*
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status
*
* @param string $status 状态
*
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Gets errorCode
*
* @return string
*/
public function getErrorCode()
{
return $this->container['errorCode'];
}
/**
* Sets errorCode
*
* @param string $errorCode 错误码
*
* @return $this
*/
public function setErrorCode($errorCode)
{
$this->container['errorCode'] = $errorCode;
return $this;
}
/**
* Gets errorMsg
*
* @return string
*/
public function getErrorMsg()
{
return $this->container['errorMsg'];
}
/**
* Sets errorMsg
*
* @param string $errorMsg 错误描述
*
* @return $this
*/
public function setErrorMsg($errorMsg)
{
$this->container['errorMsg'] = $errorMsg;
return $this;
}
/**
* Gets merchantNo
*
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
*
* @param string $merchantNo 商户号
*
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
*
* @param string $requestNo 请求号
*
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Gets compTransactionVO
*
* @return \Yeepay\Yop\Sdk\Service\P2f\Model\CompanyFinanceTransactionQueryCompTransactionVOResult
*/
public function getCompTransactionVO()
{
return $this->container['compTransactionVO'];
}
/**
* Sets compTransactionVO
*
* @param \Yeepay\Yop\Sdk\Service\P2f\Model\CompanyFinanceTransactionQueryCompTransactionVOResult $compTransactionVO 交易记录
*
* @return $this
*/
public function setCompTransactionVO($compTransactionVO)
{
$this->container['compTransactionVO'] = $compTransactionVO;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param integer $offset Offset
*
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param integer $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param integer $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param integer $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,423 @@
<?php
/**
* CompanyFinanceTransactionQueryCompTransactionVOResult
*
* 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\P2f\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* CompanyFinanceTransactionQueryCompTransactionVOResult Class Doc Comment
*
* @category Class
* @description
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class CompanyFinanceTransactionQueryCompTransactionVOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'CompanyFinanceTransactionQueryCompTransactionVOResult';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'requestNo' => 'string',
'requestTime' => 'string',
'p2fOrderId' => 'string',
'transactionType' => 'string',
'amount' => 'string'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'requestNo' => null,
'requestTime' => null,
'p2fOrderId' => null,
'transactionType' => null,
'amount' => 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 = [
'requestNo' => 'requestNo',
'requestTime' => 'requestTime',
'p2fOrderId' => 'p2fOrderId',
'transactionType' => 'transactionType',
'amount' => 'amount'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'requestNo' => 'setRequestNo',
'requestTime' => 'setRequestTime',
'p2fOrderId' => 'setP2fOrderId',
'transactionType' => 'setTransactionType',
'amount' => 'setAmount'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'requestNo' => 'getRequestNo',
'requestTime' => 'getRequestTime',
'p2fOrderId' => 'getP2fOrderId',
'transactionType' => 'getTransactionType',
'amount' => 'getAmount'
];
/**
* 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['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
$this->container['requestTime'] = isset($data['requestTime']) ? $data['requestTime'] : null;
$this->container['p2fOrderId'] = isset($data['p2fOrderId']) ? $data['p2fOrderId'] : null;
$this->container['transactionType'] = isset($data['transactionType']) ? $data['transactionType'] : null;
$this->container['amount'] = isset($data['amount']) ? $data['amount'] : 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 requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
*
* @param string $requestNo 请求号
*
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Gets requestTime
*
* @return string
*/
public function getRequestTime()
{
return $this->container['requestTime'];
}
/**
* Sets requestTime
*
* @param string $requestTime 请求时间
*
* @return $this
*/
public function setRequestTime($requestTime)
{
$this->container['requestTime'] = $requestTime;
return $this;
}
/**
* Gets p2fOrderId
*
* @return string
*/
public function getP2fOrderId()
{
return $this->container['p2fOrderId'];
}
/**
* Sets p2fOrderId
*
* @param string $p2fOrderId P2F订单号
*
* @return $this
*/
public function setP2fOrderId($p2fOrderId)
{
$this->container['p2fOrderId'] = $p2fOrderId;
return $this;
}
/**
* Gets transactionType
*
* @return string
*/
public function getTransactionType()
{
return $this->container['transactionType'];
}
/**
* Sets transactionType
*
* @param string $transactionType 交易类型
*
* @return $this
*/
public function setTransactionType($transactionType)
{
$this->container['transactionType'] = $transactionType;
return $this;
}
/**
* Gets amount
*
* @return string
*/
public function getAmount()
{
return $this->container['amount'];
}
/**
* Sets amount
*
* @param string $amount 交易金额
*
* @return $this
*/
public function setAmount($amount)
{
$this->container['amount'] = $amount;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param integer $offset Offset
*
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param integer $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param integer $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param integer $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,142 @@
<?php
namespace Yeepay\Yop\Sdk\Service\P2f\Model;
class CompanyFinanceTransactionQueryRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
{
/**
* @var string
*/
private $startDate;
/**
* @var string
*/
private $endDate;
/**
* @var string
*/
private $channelCode;
/**
* @var string
*/
private $requestNo;
/**
* @var string
*/
private $merchantNo;
/**
* Gets startDate
*
* @return string
*/
public function getStartDate()
{
return $this->startDate;
}
/**
* Sets startDate
*
* @param string $startDate
* @return CompanyFinanceTransactionQueryRequest
*/
public function setStartDate($startDate)
{
$this->startDate = $startDate;
return $this;
}
/**
* Gets endDate
*
* @return string
*/
public function getEndDate()
{
return $this->endDate;
}
/**
* Sets endDate
*
* @param string $endDate
* @return CompanyFinanceTransactionQueryRequest
*/
public function setEndDate($endDate)
{
$this->endDate = $endDate;
return $this;
}
/**
* Gets channelCode
*
* @return string
*/
public function getChannelCode()
{
return $this->channelCode;
}
/**
* Sets channelCode
*
* @param string $channelCode
* @return CompanyFinanceTransactionQueryRequest
*/
public function setChannelCode($channelCode)
{
$this->channelCode = $channelCode;
return $this;
}
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->requestNo;
}
/**
* Sets requestNo
*
* @param string $requestNo
* @return CompanyFinanceTransactionQueryRequest
*/
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 CompanyFinanceTransactionQueryRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
public static function getOperationId()
{
return 'companyFinanceTransactionQuery';
}
}

View File

@@ -0,0 +1,92 @@
<?php
namespace Yeepay\Yop\Sdk\Service\P2f\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 CompanyFinanceTransactionQueryRequestMarshaller implements RequestMarshaller
{
/**
* @var CompanyFinanceTransactionQueryRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new CompanyFinanceTransactionQueryRequestMarshaller();
}
/**
* @return CompanyFinanceTransactionQueryRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'P2f';
/**
* @var string
*/
private $httpMethod = 'GET';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/p2f/company-finance/transaction/query';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param CompanyFinanceTransactionQueryRequest $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->getStartDate() != null){
$internalRequest->addParameter('startDate', ObjectSerializer::sanitizeForSerialization($request->getStartDate(), 'string'));
}
if($request->getEndDate() != null){
$internalRequest->addParameter('endDate', ObjectSerializer::sanitizeForSerialization($request->getEndDate(), 'string'));
}
if($request->getChannelCode() != null){
$internalRequest->addParameter('channelCode', ObjectSerializer::sanitizeForSerialization($request->getChannelCode(), '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;
}
}
CompanyFinanceTransactionQueryRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,572 @@
<?php
/**
* FileUploadCustFileUploadResponseDTOResult
*
* 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\P2f\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FileUploadCustFileUploadResponseDTOResult Class Doc Comment
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class FileUploadCustFileUploadResponseDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'FileUploadCustFileUploadResponseDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'status' => 'string',
'errorCode' => 'string',
'errorMsg' => 'string',
'merchantNo' => 'string',
'requestNo' => 'string',
'fileType' => 'string',
'image' => 'string',
'imageOriginalFileName' => 'string',
'imageFileSize' => 'string',
'imageMd5' => 'string'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'status' => null,
'errorCode' => null,
'errorMsg' => null,
'merchantNo' => null,
'requestNo' => null,
'fileType' => null,
'image' => null,
'imageOriginalFileName' => null,
'imageFileSize' => null,
'imageMd5' => null
];
/**
* Array of property to type mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @var string[]
*/
protected static $attributeMap = [
'status' => 'status',
'errorCode' => 'errorCode',
'errorMsg' => 'errorMsg',
'merchantNo' => 'merchantNo',
'requestNo' => 'requestNo',
'fileType' => 'fileType',
'image' => 'image',
'imageOriginalFileName' => 'imageOriginalFileName',
'imageFileSize' => 'imageFileSize',
'imageMd5' => 'imageMd5'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'status' => 'setStatus',
'errorCode' => 'setErrorCode',
'errorMsg' => 'setErrorMsg',
'merchantNo' => 'setMerchantNo',
'requestNo' => 'setRequestNo',
'fileType' => 'setFileType',
'image' => 'setImage',
'imageOriginalFileName' => 'setImageOriginalFileName',
'imageFileSize' => 'setImageFileSize',
'imageMd5' => 'setImageMd5'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'status' => 'getStatus',
'errorCode' => 'getErrorCode',
'errorMsg' => 'getErrorMsg',
'merchantNo' => 'getMerchantNo',
'requestNo' => 'getRequestNo',
'fileType' => 'getFileType',
'image' => 'getImage',
'imageOriginalFileName' => 'getImageOriginalFileName',
'imageFileSize' => 'getImageFileSize',
'imageMd5' => 'getImageMd5'
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['errorCode'] = isset($data['errorCode']) ? $data['errorCode'] : null;
$this->container['errorMsg'] = isset($data['errorMsg']) ? $data['errorMsg'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
$this->container['fileType'] = isset($data['fileType']) ? $data['fileType'] : null;
$this->container['image'] = isset($data['image']) ? $data['image'] : null;
$this->container['imageOriginalFileName'] = isset($data['imageOriginalFileName']) ? $data['imageOriginalFileName'] : null;
$this->container['imageFileSize'] = isset($data['imageFileSize']) ? $data['imageFileSize'] : null;
$this->container['imageMd5'] = isset($data['imageMd5']) ? $data['imageMd5'] : null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
*
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets status
*
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status
*
* @param string $status 订单状态
*
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Gets errorCode
*
* @return string
*/
public function getErrorCode()
{
return $this->container['errorCode'];
}
/**
* Sets errorCode
*
* @param string $errorCode 错误码
*
* @return $this
*/
public function setErrorCode($errorCode)
{
$this->container['errorCode'] = $errorCode;
return $this;
}
/**
* Gets errorMsg
*
* @return string
*/
public function getErrorMsg()
{
return $this->container['errorMsg'];
}
/**
* Sets errorMsg
*
* @param string $errorMsg 错误信息
*
* @return $this
*/
public function setErrorMsg($errorMsg)
{
$this->container['errorMsg'] = $errorMsg;
return $this;
}
/**
* Gets merchantNo
*
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
*
* @param string $merchantNo 商户编号
*
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
*
* @param string $requestNo 商户请求号
*
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Gets fileType
*
* @return string
*/
public function getFileType()
{
return $this->container['fileType'];
}
/**
* Sets fileType
*
* @param string $fileType 文件类型
*
* @return $this
*/
public function setFileType($fileType)
{
$this->container['fileType'] = $fileType;
return $this;
}
/**
* Gets image
*
* @return string
*/
public function getImage()
{
return $this->container['image'];
}
/**
* Sets image
*
* @param string $image 文件存储路径
*
* @return $this
*/
public function setImage($image)
{
$this->container['image'] = $image;
return $this;
}
/**
* Gets imageOriginalFileName
*
* @return string
*/
public function getImageOriginalFileName()
{
return $this->container['imageOriginalFileName'];
}
/**
* Sets imageOriginalFileName
*
* @param string $imageOriginalFileName 上传文件名称
*
* @return $this
*/
public function setImageOriginalFileName($imageOriginalFileName)
{
$this->container['imageOriginalFileName'] = $imageOriginalFileName;
return $this;
}
/**
* Gets imageFileSize
*
* @return string
*/
public function getImageFileSize()
{
return $this->container['imageFileSize'];
}
/**
* Sets imageFileSize
*
* @param string $imageFileSize 上传文件大小
*
* @return $this
*/
public function setImageFileSize($imageFileSize)
{
$this->container['imageFileSize'] = $imageFileSize;
return $this;
}
/**
* Gets imageMd5
*
* @return string
*/
public function getImageMd5()
{
return $this->container['imageMd5'];
}
/**
* Sets imageMd5
*
* @param string $imageMd5 文件MD5值
*
* @return $this
*/
public function setImageMd5($imageMd5)
{
$this->container['imageMd5'] = $imageMd5;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param integer $offset Offset
*
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param integer $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param integer $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param integer $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,192 @@
<?php
namespace Yeepay\Yop\Sdk\Service\P2f\Model;
class FileUploadRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
{
/**
* @var string
*/
private $requestNo;
/**
* @var string
*/
private $identityType;
/**
* @var string
*/
private $identityId;
/**
* @var string
*/
private $idType;
/**
* @var string
*/
private $idNO;
/**
* @var string
*/
private $fileType;
/**
* @var Resource
*/
private $image;
/**
* Gets requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->requestNo;
}
/**
* Sets requestNo
*
* @param string $requestNo
* @return FileUploadRequest
*/
public function setRequestNo($requestNo)
{
$this->requestNo = $requestNo;
return $this;
}
/**
* Gets identityType
*
* @return string
*/
public function getIdentityType()
{
return $this->identityType;
}
/**
* Sets identityType
*
* @param string $identityType
* @return FileUploadRequest
*/
public function setIdentityType($identityType)
{
$this->identityType = $identityType;
return $this;
}
/**
* Gets identityId
*
* @return string
*/
public function getIdentityId()
{
return $this->identityId;
}
/**
* Sets identityId
*
* @param string $identityId
* @return FileUploadRequest
*/
public function setIdentityId($identityId)
{
$this->identityId = $identityId;
return $this;
}
/**
* Gets idType
*
* @return string
*/
public function getIdType()
{
return $this->idType;
}
/**
* Sets idType
*
* @param string $idType
* @return FileUploadRequest
*/
public function setIdType($idType)
{
$this->idType = $idType;
return $this;
}
/**
* Gets idNO
*
* @return string
*/
public function getIdNO()
{
return $this->idNO;
}
/**
* Sets idNO
*
* @param string $idNO
* @return FileUploadRequest
*/
public function setIdNO($idNO)
{
$this->idNO = $idNO;
return $this;
}
/**
* Gets fileType
*
* @return string
*/
public function getFileType()
{
return $this->fileType;
}
/**
* Sets fileType
*
* @param string $fileType
* @return FileUploadRequest
*/
public function setFileType($fileType)
{
$this->fileType = $fileType;
return $this;
}
/**
* Gets image
*
* @return Resource
*/
public function getImage()
{
return $this->image;
}
/**
* Sets image
*
* @param Resource $image
* @return FileUploadRequest
*/
public function setImage($image)
{
$this->image = $image;
return $this;
}
public static function getOperationId()
{
return 'fileUpload';
}
}

View File

@@ -0,0 +1,98 @@
<?php
namespace Yeepay\Yop\Sdk\Service\P2f\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 FileUploadRequestMarshaller implements RequestMarshaller
{
/**
* @var FileUploadRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FileUploadRequestMarshaller();
}
/**
* @return FileUploadRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'P2f';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/yos/v1.0/p2f/file-upload';
/**
* @var string
*/
private $contentType = 'multipart/form-data';
/**
* @param FileUploadRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
$internalRequest->setYosFlag(true);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if($request->getRequestNo() != null){
$internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
}
if($request->getIdentityType() != null){
$internalRequest->addParameter('identityType', ObjectSerializer::sanitizeForSerialization($request->getIdentityType(), 'string'));
}
if($request->getIdentityId() != null){
$internalRequest->addParameter('identityId', ObjectSerializer::sanitizeForSerialization($request->getIdentityId(), 'string'));
}
if($request->getIdType() != null){
$internalRequest->addParameter('idType', ObjectSerializer::sanitizeForSerialization($request->getIdType(), 'string'));
}
if($request->getIdNO() != null){
$internalRequest->addParameter('idNO', ObjectSerializer::sanitizeForSerialization($request->getIdNO(), 'string'));
}
if($request->getFileType() != null){
$internalRequest->addParameter('fileType', ObjectSerializer::sanitizeForSerialization($request->getFileType(), 'string'));
}
if($request->getImage() != null){
$internalRequest->addMultiPartFile('image', $request->getImage());
}
return $internalRequest;
}
}
FileUploadRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,482 @@
<?php
/**
* ZzdfOrderRechargeAndPayRspDTOResult
*
* 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\P2f\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* ZzdfOrderRechargeAndPayRspDTOResult Class Doc Comment
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class ZzdfOrderRechargeAndPayRspDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'ZzdfOrderRechargeAndPayRspDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'returnCode' => 'string',
'returnMsg' => 'string',
'requestNo' => 'string',
'orderNo' => 'string',
'rechargeOrderNo' => 'string',
'payOrderNo' => 'string',
'status' => 'string'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'returnCode' => null,
'returnMsg' => null,
'requestNo' => null,
'orderNo' => null,
'rechargeOrderNo' => null,
'payOrderNo' => null,
'status' => null
];
/**
* Array of property to type mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
*
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @var string[]
*/
protected static $attributeMap = [
'returnCode' => 'returnCode',
'returnMsg' => 'returnMsg',
'requestNo' => 'requestNo',
'orderNo' => 'orderNo',
'rechargeOrderNo' => 'rechargeOrderNo',
'payOrderNo' => 'payOrderNo',
'status' => 'status'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'returnCode' => 'setReturnCode',
'returnMsg' => 'setReturnMsg',
'requestNo' => 'setRequestNo',
'orderNo' => 'setOrderNo',
'rechargeOrderNo' => 'setRechargeOrderNo',
'payOrderNo' => 'setPayOrderNo',
'status' => 'setStatus'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'returnCode' => 'getReturnCode',
'returnMsg' => 'getReturnMsg',
'requestNo' => 'getRequestNo',
'orderNo' => 'getOrderNo',
'rechargeOrderNo' => 'getRechargeOrderNo',
'payOrderNo' => 'getPayOrderNo',
'status' => 'getStatus'
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
$this->container['orderNo'] = isset($data['orderNo']) ? $data['orderNo'] : null;
$this->container['rechargeOrderNo'] = isset($data['rechargeOrderNo']) ? $data['rechargeOrderNo'] : null;
$this->container['payOrderNo'] = isset($data['payOrderNo']) ? $data['payOrderNo'] : 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 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 requestNo
*
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
*
* @param string $requestNo 商户请求号
*
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Gets orderNo
*
* @return string
*/
public function getOrderNo()
{
return $this->container['orderNo'];
}
/**
* Sets orderNo
*
* @param string $orderNo 增值代付订单号
*
* @return $this
*/
public function setOrderNo($orderNo)
{
$this->container['orderNo'] = $orderNo;
return $this;
}
/**
* Gets rechargeOrderNo
*
* @return string
*/
public function getRechargeOrderNo()
{
return $this->container['rechargeOrderNo'];
}
/**
* Sets rechargeOrderNo
*
* @param string $rechargeOrderNo 充值订单号
*
* @return $this
*/
public function setRechargeOrderNo($rechargeOrderNo)
{
$this->container['rechargeOrderNo'] = $rechargeOrderNo;
return $this;
}
/**
* Gets payOrderNo
*
* @return string
*/
public function getPayOrderNo()
{
return $this->container['payOrderNo'];
}
/**
* Sets payOrderNo
*
* @param string $payOrderNo 付款订单号
*
* @return $this
*/
public function setPayOrderNo($payOrderNo)
{
$this->container['payOrderNo'] = $payOrderNo;
return $this;
}
/**
* Gets status
*
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status
*
* @param string $status 订单状态
*
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param integer $offset Offset
*
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param integer $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param integer $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param integer $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,567 @@
<?php
namespace Yeepay\Yop\Sdk\Service\P2f\Model;
class ZzdfOrderRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
{
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $merchantNo;
/**
* @var string
*/
private $requestNo;
/**
* @var float
*/
private $orderAmount;
/**
* @var string
*/
private $receiverAccountNo;
/**
* @var string
*/
private $receiverAccountName;
/**
* @var string
*/
private $receiverBankCode;
/**
* @var string
*/
private $province;
/**
* @var string
*/
private $city;
/**
* @var string
*/
private $branchBankCode;
/**
* @var string
*/
private $bankAccountType;
/**
* @var string
*/
private $comments;
/**
* @var string
*/
private $feeChargeSide;
/**
* @var string
*/
private $terminalType;
/**
* @var string
*/
private $receiveType;
/**
* @var string
*/
private $notifyUrl;
/**
* @var string
*/
private $remark;
/**
* @var string
*/
private $rechargeAcctType;
/**
* @var string
*/
private $rechargeRemark;
/**
* @var string
*/
private $rechargeFeeType;
/**
* @var string
*/
private $rechargeBankCode;
/**
* @var string
*/
private $rechargeBankCardNo;
/**
* Gets parentMerchantNo
*
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
*
* @param string $parentMerchantNo
* @return ZzdfOrderRequest
*/
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 ZzdfOrderRequest
*/
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 ZzdfOrderRequest
*/
public function setRequestNo($requestNo)
{
$this->requestNo = $requestNo;
return $this;
}
/**
* Gets orderAmount
*
* @return float
*/
public function getOrderAmount()
{
return $this->orderAmount;
}
/**
* Sets orderAmount
*
* @param float $orderAmount
* @return ZzdfOrderRequest
*/
public function setOrderAmount($orderAmount)
{
$this->orderAmount = $orderAmount;
return $this;
}
/**
* Gets receiverAccountNo
*
* @return string
*/
public function getReceiverAccountNo()
{
return $this->receiverAccountNo;
}
/**
* Sets receiverAccountNo
*
* @param string $receiverAccountNo
* @return ZzdfOrderRequest
*/
public function setReceiverAccountNo($receiverAccountNo)
{
$this->receiverAccountNo = $receiverAccountNo;
return $this;
}
/**
* Gets receiverAccountName
*
* @return string
*/
public function getReceiverAccountName()
{
return $this->receiverAccountName;
}
/**
* Sets receiverAccountName
*
* @param string $receiverAccountName
* @return ZzdfOrderRequest
*/
public function setReceiverAccountName($receiverAccountName)
{
$this->receiverAccountName = $receiverAccountName;
return $this;
}
/**
* Gets receiverBankCode
*
* @return string
*/
public function getReceiverBankCode()
{
return $this->receiverBankCode;
}
/**
* Sets receiverBankCode
*
* @param string $receiverBankCode
* @return ZzdfOrderRequest
*/
public function setReceiverBankCode($receiverBankCode)
{
$this->receiverBankCode = $receiverBankCode;
return $this;
}
/**
* Gets province
*
* @return string
*/
public function getProvince()
{
return $this->province;
}
/**
* Sets province
*
* @param string $province
* @return ZzdfOrderRequest
*/
public function setProvince($province)
{
$this->province = $province;
return $this;
}
/**
* Gets city
*
* @return string
*/
public function getCity()
{
return $this->city;
}
/**
* Sets city
*
* @param string $city
* @return ZzdfOrderRequest
*/
public function setCity($city)
{
$this->city = $city;
return $this;
}
/**
* Gets branchBankCode
*
* @return string
*/
public function getBranchBankCode()
{
return $this->branchBankCode;
}
/**
* Sets branchBankCode
*
* @param string $branchBankCode
* @return ZzdfOrderRequest
*/
public function setBranchBankCode($branchBankCode)
{
$this->branchBankCode = $branchBankCode;
return $this;
}
/**
* Gets bankAccountType
*
* @return string
*/
public function getBankAccountType()
{
return $this->bankAccountType;
}
/**
* Sets bankAccountType
*
* @param string $bankAccountType
* @return ZzdfOrderRequest
*/
public function setBankAccountType($bankAccountType)
{
$this->bankAccountType = $bankAccountType;
return $this;
}
/**
* Gets comments
*
* @return string
*/
public function getComments()
{
return $this->comments;
}
/**
* Sets comments
*
* @param string $comments
* @return ZzdfOrderRequest
*/
public function setComments($comments)
{
$this->comments = $comments;
return $this;
}
/**
* Gets feeChargeSide
*
* @return string
*/
public function getFeeChargeSide()
{
return $this->feeChargeSide;
}
/**
* Sets feeChargeSide
*
* @param string $feeChargeSide
* @return ZzdfOrderRequest
*/
public function setFeeChargeSide($feeChargeSide)
{
$this->feeChargeSide = $feeChargeSide;
return $this;
}
/**
* Gets terminalType
*
* @return string
*/
public function getTerminalType()
{
return $this->terminalType;
}
/**
* Sets terminalType
*
* @param string $terminalType
* @return ZzdfOrderRequest
*/
public function setTerminalType($terminalType)
{
$this->terminalType = $terminalType;
return $this;
}
/**
* Gets receiveType
*
* @return string
*/
public function getReceiveType()
{
return $this->receiveType;
}
/**
* Sets receiveType
*
* @param string $receiveType
* @return ZzdfOrderRequest
*/
public function setReceiveType($receiveType)
{
$this->receiveType = $receiveType;
return $this;
}
/**
* Gets notifyUrl
*
* @return string
*/
public function getNotifyUrl()
{
return $this->notifyUrl;
}
/**
* Sets notifyUrl
*
* @param string $notifyUrl
* @return ZzdfOrderRequest
*/
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl = $notifyUrl;
return $this;
}
/**
* Gets remark
*
* @return string
*/
public function getRemark()
{
return $this->remark;
}
/**
* Sets remark
*
* @param string $remark
* @return ZzdfOrderRequest
*/
public function setRemark($remark)
{
$this->remark = $remark;
return $this;
}
/**
* Gets rechargeAcctType
*
* @return string
*/
public function getRechargeAcctType()
{
return $this->rechargeAcctType;
}
/**
* Sets rechargeAcctType
*
* @param string $rechargeAcctType
* @return ZzdfOrderRequest
*/
public function setRechargeAcctType($rechargeAcctType)
{
$this->rechargeAcctType = $rechargeAcctType;
return $this;
}
/**
* Gets rechargeRemark
*
* @return string
*/
public function getRechargeRemark()
{
return $this->rechargeRemark;
}
/**
* Sets rechargeRemark
*
* @param string $rechargeRemark
* @return ZzdfOrderRequest
*/
public function setRechargeRemark($rechargeRemark)
{
$this->rechargeRemark = $rechargeRemark;
return $this;
}
/**
* Gets rechargeFeeType
*
* @return string
*/
public function getRechargeFeeType()
{
return $this->rechargeFeeType;
}
/**
* Sets rechargeFeeType
*
* @param string $rechargeFeeType
* @return ZzdfOrderRequest
*/
public function setRechargeFeeType($rechargeFeeType)
{
$this->rechargeFeeType = $rechargeFeeType;
return $this;
}
/**
* Gets rechargeBankCode
*
* @return string
*/
public function getRechargeBankCode()
{
return $this->rechargeBankCode;
}
/**
* Sets rechargeBankCode
*
* @param string $rechargeBankCode
* @return ZzdfOrderRequest
*/
public function setRechargeBankCode($rechargeBankCode)
{
$this->rechargeBankCode = $rechargeBankCode;
return $this;
}
/**
* Gets rechargeBankCardNo
*
* @return string
*/
public function getRechargeBankCardNo()
{
return $this->rechargeBankCardNo;
}
/**
* Sets rechargeBankCardNo
*
* @param string $rechargeBankCardNo
* @return ZzdfOrderRequest
*/
public function setRechargeBankCardNo($rechargeBankCardNo)
{
$this->rechargeBankCardNo = $rechargeBankCardNo;
return $this;
}
public static function getOperationId()
{
return 'zzdfOrder';
}
}

View File

@@ -0,0 +1,143 @@
<?php
namespace Yeepay\Yop\Sdk\Service\P2f\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 ZzdfOrderRequestMarshaller implements RequestMarshaller
{
/**
* @var ZzdfOrderRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new ZzdfOrderRequestMarshaller();
}
/**
* @return ZzdfOrderRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'P2f';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/p2f/zzdf/order';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param ZzdfOrderRequest $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'));
}
if($request->getOrderAmount() != null){
$internalRequest->addParameter('orderAmount', ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'float'));
}
if($request->getReceiverAccountNo() != null){
$internalRequest->addParameter('receiverAccountNo', ObjectSerializer::sanitizeForSerialization($request->getReceiverAccountNo(), 'string'));
}
if($request->getReceiverAccountName() != null){
$internalRequest->addParameter('receiverAccountName', ObjectSerializer::sanitizeForSerialization($request->getReceiverAccountName(), 'string'));
}
if($request->getReceiverBankCode() != null){
$internalRequest->addParameter('receiverBankCode', ObjectSerializer::sanitizeForSerialization($request->getReceiverBankCode(), 'string'));
}
if($request->getProvince() != null){
$internalRequest->addParameter('province', ObjectSerializer::sanitizeForSerialization($request->getProvince(), 'string'));
}
if($request->getCity() != null){
$internalRequest->addParameter('city', ObjectSerializer::sanitizeForSerialization($request->getCity(), 'string'));
}
if($request->getBranchBankCode() != null){
$internalRequest->addParameter('branchBankCode', ObjectSerializer::sanitizeForSerialization($request->getBranchBankCode(), 'string'));
}
if($request->getBankAccountType() != null){
$internalRequest->addParameter('bankAccountType', ObjectSerializer::sanitizeForSerialization($request->getBankAccountType(), 'string'));
}
if($request->getComments() != null){
$internalRequest->addParameter('comments', ObjectSerializer::sanitizeForSerialization($request->getComments(), 'string'));
}
if($request->getFeeChargeSide() != null){
$internalRequest->addParameter('feeChargeSide', ObjectSerializer::sanitizeForSerialization($request->getFeeChargeSide(), 'string'));
}
if($request->getTerminalType() != null){
$internalRequest->addParameter('terminalType', ObjectSerializer::sanitizeForSerialization($request->getTerminalType(), 'string'));
}
if($request->getReceiveType() != null){
$internalRequest->addParameter('receiveType', ObjectSerializer::sanitizeForSerialization($request->getReceiveType(), 'string'));
}
if($request->getNotifyUrl() != null){
$internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string'));
}
if($request->getRemark() != null){
$internalRequest->addParameter('remark', ObjectSerializer::sanitizeForSerialization($request->getRemark(), 'string'));
}
if($request->getRechargeAcctType() != null){
$internalRequest->addParameter('rechargeAcctType', ObjectSerializer::sanitizeForSerialization($request->getRechargeAcctType(), 'string'));
}
if($request->getRechargeRemark() != null){
$internalRequest->addParameter('rechargeRemark', ObjectSerializer::sanitizeForSerialization($request->getRechargeRemark(), 'string'));
}
if($request->getRechargeFeeType() != null){
$internalRequest->addParameter('rechargeFeeType', ObjectSerializer::sanitizeForSerialization($request->getRechargeFeeType(), 'string'));
}
if($request->getRechargeBankCode() != null){
$internalRequest->addParameter('rechargeBankCode', ObjectSerializer::sanitizeForSerialization($request->getRechargeBankCode(), 'string'));
}
if($request->getRechargeBankCardNo() != null){
$internalRequest->addParameter('rechargeBankCardNo', ObjectSerializer::sanitizeForSerialization($request->getRechargeBankCardNo(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
ZzdfOrderRequestMarshaller::__init();

View File

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

View File

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

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,117 @@
<?php
namespace Yeepay\Yop\Sdk\Service\P2f\Model;
class ZzdfQueryRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
{
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $merchantNo;
/**
* @var string
*/
private $requestNo;
/**
* @var string
*/
private $orderNo;
/**
* Gets parentMerchantNo
*
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
*
* @param string $parentMerchantNo
* @return ZzdfQueryRequest
*/
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 ZzdfQueryRequest
*/
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 ZzdfQueryRequest
*/
public function setRequestNo($requestNo)
{
$this->requestNo = $requestNo;
return $this;
}
/**
* Gets orderNo
*
* @return string
*/
public function getOrderNo()
{
return $this->orderNo;
}
/**
* Sets orderNo
*
* @param string $orderNo
* @return ZzdfQueryRequest
*/
public function setOrderNo($orderNo)
{
$this->orderNo = $orderNo;
return $this;
}
public static function getOperationId()
{
return 'zzdfQuery';
}
}

View File

@@ -0,0 +1,89 @@
<?php
namespace Yeepay\Yop\Sdk\Service\P2f\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 ZzdfQueryRequestMarshaller implements RequestMarshaller
{
/**
* @var ZzdfQueryRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new ZzdfQueryRequestMarshaller();
}
/**
* @return ZzdfQueryRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'P2f';
/**
* @var string
*/
private $httpMethod = 'GET';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/p2f/zzdf/query';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param ZzdfQueryRequest $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'));
}
if($request->getOrderNo() != null){
$internalRequest->addParameter('orderNo', ObjectSerializer::sanitizeForSerialization($request->getOrderNo(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
ZzdfQueryRequestMarshaller::__init();

View File

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

View File

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