代码初始化
This commit is contained in:
95
extend/Yzh/ApiUserSignServiceClient.php
Normal file
95
extend/Yzh/ApiUserSignServiceClient.php
Normal file
@@ -0,0 +1,95 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh;
|
||||
|
||||
use Yzh\Exception\ConfigException;
|
||||
use Yzh\Exception\ExceptionCode;
|
||||
use Yzh\Model\Apiusersign\ApiUseSignContractRequest;
|
||||
use Yzh\Model\Apiusersign\ApiUseSignContractResponse;
|
||||
use Yzh\Model\Apiusersign\ApiUserSignContractRequest;
|
||||
use Yzh\Model\Apiusersign\ApiUserSignContractResponse;
|
||||
use Yzh\Model\Apiusersign\ApiUserSignRequest;
|
||||
use Yzh\Model\Apiusersign\ApiUserSignResponse;
|
||||
use Yzh\Model\Apiusersign\GetApiUserSignStatusRequest;
|
||||
use Yzh\Model\Apiusersign\GetApiUserSignStatusResponse;
|
||||
use Yzh\Model\Apiusersign\ApiUserSignReleaseRequest;
|
||||
use Yzh\Model\Apiusersign\ApiUserSignReleaseResponse;
|
||||
|
||||
/**
|
||||
* API 签约
|
||||
* Class ApiUserSignServiceClient
|
||||
*/
|
||||
class ApiUserSignServiceClient extends BaseClient
|
||||
{
|
||||
protected static $service_name = 'apiusersignservice';
|
||||
|
||||
/**
|
||||
* 获取协议预览 URL
|
||||
* @param ApiUseSignContractRequest $request
|
||||
* @param null $option
|
||||
* @return ApiUseSignContractResponse
|
||||
*/
|
||||
public function apiUseSignContract($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof ApiUseSignContractRequest) {
|
||||
throw new ConfigException("Apiusersign->apiUseSignContract request 必须是 Yzh\\Model\\Apiusersign\\ApiUseSignContractRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/sign/v1/user/contract', $request, "Yzh\\Model\\Apiusersign\\ApiUseSignContractResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取协议预览 URL V2
|
||||
* @param ApiUserSignContractRequest $request
|
||||
* @param null $option
|
||||
* @return ApiUserSignContractResponse
|
||||
*/
|
||||
public function apiUserSignContract($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof ApiUserSignContractRequest) {
|
||||
throw new ConfigException("Apiusersign->apiUserSignContract request 必须是 Yzh\\Model\\Apiusersign\\ApiUserSignContractRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/sign/v1/user/contract', $request, "Yzh\\Model\\Apiusersign\\ApiUserSignContractResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户签约
|
||||
* @param ApiUserSignRequest $request
|
||||
* @param null $option
|
||||
* @return ApiUserSignResponse
|
||||
*/
|
||||
public function apiUserSign($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof ApiUserSignRequest) {
|
||||
throw new ConfigException("Apiusersign->apiUserSign request 必须是 Yzh\\Model\\Apiusersign\\ApiUserSignRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('POST', '/api/sign/v1/user/sign', $request, "Yzh\\Model\\Apiusersign\\ApiUserSignResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取用户签约状态
|
||||
* @param GetApiUserSignStatusRequest $request
|
||||
* @param null $option
|
||||
* @return GetApiUserSignStatusResponse
|
||||
*/
|
||||
public function getApiUserSignStatus($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof GetApiUserSignStatusRequest) {
|
||||
throw new ConfigException("Apiusersign->getApiUserSignStatus request 必须是 Yzh\\Model\\Apiusersign\\GetApiUserSignStatusRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/sign/v1/user/status', $request, "Yzh\\Model\\Apiusersign\\GetApiUserSignStatusResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户解约(测试账号专用接口)
|
||||
* @param ApiUserSignReleaseRequest $request
|
||||
* @param null $option
|
||||
* @return ApiUserSignReleaseResponse
|
||||
*/
|
||||
public function apiUserSignRelease($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof ApiUserSignReleaseRequest) {
|
||||
throw new ConfigException("Apiusersign->apiUserSignRelease request 必须是 Yzh\\Model\\Apiusersign\\ApiUserSignReleaseRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('POST', '/api/sign/v1/user/release', $request, "Yzh\\Model\\Apiusersign\\ApiUserSignReleaseResponse", $option);
|
||||
}
|
||||
}
|
||||
143
extend/Yzh/AuthenticationClient.php
Normal file
143
extend/Yzh/AuthenticationClient.php
Normal file
@@ -0,0 +1,143 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh;
|
||||
|
||||
use Yzh\Exception\ConfigException;
|
||||
use Yzh\Exception\ExceptionCode;
|
||||
use Yzh\Model\Authentication\BankCardFourAuthVerifyRequest;
|
||||
use Yzh\Model\Authentication\BankCardFourAuthVerifyResponse;
|
||||
use Yzh\Model\Authentication\BankCardFourAuthConfirmRequest;
|
||||
use Yzh\Model\Authentication\BankCardFourAuthConfirmResponse;
|
||||
use Yzh\Model\Authentication\BankCardFourVerifyRequest;
|
||||
use Yzh\Model\Authentication\BankCardFourVerifyResponse;
|
||||
use Yzh\Model\Authentication\BankCardThreeVerifyRequest;
|
||||
use Yzh\Model\Authentication\BankCardThreeVerifyResponse;
|
||||
use Yzh\Model\Authentication\IDCardVerifyRequest;
|
||||
use Yzh\Model\Authentication\IDCardVerifyResponse;
|
||||
use Yzh\Model\Authentication\UserExemptedInfoRequest;
|
||||
use Yzh\Model\Authentication\UserExemptedInfoResponse;
|
||||
use Yzh\Model\Authentication\UserWhiteCheckRequest;
|
||||
use Yzh\Model\Authentication\UserWhiteCheckResponse;
|
||||
use Yzh\Model\Authentication\GetBankCardInfoRequest;
|
||||
use Yzh\Model\Authentication\GetBankCardInfoResponse;
|
||||
|
||||
/**
|
||||
* 用户信息验证
|
||||
* Class AuthenticationClient
|
||||
*/
|
||||
class AuthenticationClient extends BaseClient
|
||||
{
|
||||
protected static $service_name = 'authentication';
|
||||
|
||||
/**
|
||||
* 银行卡四要素鉴权请求(下发短信验证码)
|
||||
* @param BankCardFourAuthVerifyRequest $request
|
||||
* @param null $option
|
||||
* @return BankCardFourAuthVerifyResponse
|
||||
*/
|
||||
public function bankCardFourAuthVerify($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof BankCardFourAuthVerifyRequest) {
|
||||
throw new ConfigException("Authentication->bankCardFourAuthVerify request 必须是 Yzh\\Model\\Authentication\\BankCardFourAuthVerifyRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('POST', '/authentication/verify-request', $request, "Yzh\\Model\\Authentication\\BankCardFourAuthVerifyResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 银行卡四要素确认请求(上传短信验证码)
|
||||
* @param BankCardFourAuthConfirmRequest $request
|
||||
* @param null $option
|
||||
* @return BankCardFourAuthConfirmResponse
|
||||
*/
|
||||
public function bankCardFourAuthConfirm($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof BankCardFourAuthConfirmRequest) {
|
||||
throw new ConfigException("Authentication->bankCardFourAuthConfirm request 必须是 Yzh\\Model\\Authentication\\BankCardFourAuthConfirmRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('POST', '/authentication/verify-confirm', $request, "Yzh\\Model\\Authentication\\BankCardFourAuthConfirmResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 银行卡四要素验证
|
||||
* @param BankCardFourVerifyRequest $request
|
||||
* @param null $option
|
||||
* @return BankCardFourVerifyResponse
|
||||
*/
|
||||
public function bankCardFourVerify($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof BankCardFourVerifyRequest) {
|
||||
throw new ConfigException("Authentication->bankCardFourVerify request 必须是 Yzh\\Model\\Authentication\\BankCardFourVerifyRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('POST', '/authentication/verify-bankcard-four-factor', $request, "Yzh\\Model\\Authentication\\BankCardFourVerifyResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 银行卡三要素验证
|
||||
* @param BankCardThreeVerifyRequest $request
|
||||
* @param null $option
|
||||
* @return BankCardThreeVerifyResponse
|
||||
*/
|
||||
public function bankCardThreeVerify($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof BankCardThreeVerifyRequest) {
|
||||
throw new ConfigException("Authentication->bankCardThreeVerify request 必须是 Yzh\\Model\\Authentication\\BankCardThreeVerifyRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('POST', '/authentication/verify-bankcard-three-factor', $request, "Yzh\\Model\\Authentication\\BankCardThreeVerifyResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 身份证实名验证
|
||||
* @param IDCardVerifyRequest $request
|
||||
* @param null $option
|
||||
* @return IDCardVerifyResponse
|
||||
*/
|
||||
public function iDCardVerify($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof IDCardVerifyRequest) {
|
||||
throw new ConfigException("Authentication->iDCardVerify request 必须是 Yzh\\Model\\Authentication\\IDCardVerifyRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('POST', '/authentication/verify-id', $request, "Yzh\\Model\\Authentication\\IDCardVerifyResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 上传非居民身份证验证名单信息
|
||||
* @param UserExemptedInfoRequest $request
|
||||
* @param null $option
|
||||
* @return UserExemptedInfoResponse
|
||||
*/
|
||||
public function userExemptedInfo($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof UserExemptedInfoRequest) {
|
||||
throw new ConfigException("Authentication->userExemptedInfo request 必须是 Yzh\\Model\\Authentication\\UserExemptedInfoRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('POST', '/api/payment/v1/user/exempted/info', $request, "Yzh\\Model\\Authentication\\UserExemptedInfoResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查看用户是否在非居民身份证验证名单中
|
||||
* @param UserWhiteCheckRequest $request
|
||||
* @param null $option
|
||||
* @return UserWhiteCheckResponse
|
||||
*/
|
||||
public function userWhiteCheck($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof UserWhiteCheckRequest) {
|
||||
throw new ConfigException("Authentication->userWhiteCheck request 必须是 Yzh\\Model\\Authentication\\UserWhiteCheckRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('POST', '/api/payment/v1/user/white/check', $request, "Yzh\\Model\\Authentication\\UserWhiteCheckResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 银行卡信息查询接口
|
||||
* @param GetBankCardInfoRequest $request
|
||||
* @param null $option
|
||||
* @return GetBankCardInfoResponse
|
||||
*/
|
||||
public function getBankCardInfo($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof GetBankCardInfoRequest) {
|
||||
throw new ConfigException("Authentication->getBankCardInfo request 必须是 Yzh\\Model\\Authentication\\GetBankCardInfoRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/payment/v1/card', $request, "Yzh\\Model\\Authentication\\GetBankCardInfoResponse", $option);
|
||||
}
|
||||
}
|
||||
254
extend/Yzh/BaseClient.php
Normal file
254
extend/Yzh/BaseClient.php
Normal file
@@ -0,0 +1,254 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh;
|
||||
|
||||
use Yzh\Exception\ConfigException;
|
||||
use Yzh\Exception\ExceptionCode;
|
||||
use Yzh\Exception\HttpException;
|
||||
use Yzh\Config;
|
||||
use Yzh\Utils\Rsa;
|
||||
use Yzh\Utils\Des;
|
||||
use Yzh\Utils\Hmac;
|
||||
use Yzh\Utils\MessString;
|
||||
use Yzh\Model\BaseResponse;
|
||||
|
||||
defined("JSON_UNESCAPED_UNICODE") or define("JSON_UNESCAPED_UNICODE", 256);
|
||||
|
||||
class BaseClient
|
||||
{
|
||||
const SDK_NAME = "yunzhanghu-sdk-php";
|
||||
const SDK_VERSION = "2.0.15";
|
||||
const ENV_PROD = "yzh_env_prod";
|
||||
const ENV_SANDBOX = "yzh_env_sandbox";
|
||||
|
||||
protected $env;
|
||||
/**
|
||||
* @var Config
|
||||
*/
|
||||
protected $config;
|
||||
protected static $service_name;
|
||||
|
||||
protected static $env_service_host_map = array(
|
||||
self::ENV_PROD => array( // 正式环境
|
||||
'payment' => 'https://api-service.yunzhanghu.com', // 实时支付服务接口域名
|
||||
'tax' => 'https://api-service.yunzhanghu.com',
|
||||
'authentication' => 'https://api-service.yunzhanghu.com',
|
||||
'invoice' => 'https://api-service.yunzhanghu.com',
|
||||
'dataservice' => 'https://api-service.yunzhanghu.com', // 数据服务接口域名
|
||||
'apiusersignservice' => 'https://api-service.yunzhanghu.com', // API 用户签约接口域名
|
||||
'h5usersignservice' => 'https://api-service.yunzhanghu.com', // H5 用户签约接口域名
|
||||
'uploadusersignservice' => 'https://api-service.yunzhanghu.com', // 用户签约信息上传接口域名
|
||||
'bizlicgxv2h5apiservice' => 'https://api-aic.yunzhanghu.com', // 个体工商户注册服务(共享大额 H5+API)接口域名
|
||||
'bizlicgxv2h5service' => 'https://api-aic.yunzhanghu.com', // 个体工商户注册服务(共享大额 H5)接口域名
|
||||
'bizlicxjjh5apiservice' => 'https://api-aic.yunzhanghu.com', // 个体工商户注册服务 (云账户新经济 H5+API)接口域名
|
||||
'bizlicxjjh5service' => 'https://api-aic.yunzhanghu.com', // 个体工商户注册服务(云账户新经济 H5)接口域名
|
||||
'ins' => 'https://api-ins.yunzhanghu.com', // 保险服务接口域名
|
||||
'task' => 'https://api-task.yunzhanghu.com', // 任务库服务接口域名
|
||||
|
||||
),
|
||||
self::ENV_SANDBOX => array( // 沙箱环境
|
||||
'payment' => 'https://api-service.yunzhanghu.com/sandbox', // 实时支付服务接口域名
|
||||
'authentication' => 'https://api-service.yunzhanghu.com/sandbox', // 用户信息验证接口域名
|
||||
'apiusersignservice' => 'https://api-service.yunzhanghu.com/sandbox', // API 签约接口域名
|
||||
'h5usersignservice' => 'https://api-service.yunzhanghu.com/sandbox', // H5 签约接口域名
|
||||
'ins' => '', // 保险服务接口域名
|
||||
'aic' => '', // 个体工商户注册服务接口域名
|
||||
'task' => '', // 任务库服务接口域名
|
||||
'dataservice' => '', // 数据服务接口域名
|
||||
),
|
||||
);
|
||||
|
||||
protected $rsa;
|
||||
protected $hmac;
|
||||
protected $des;
|
||||
protected $app_key;
|
||||
protected $sign_type;
|
||||
|
||||
public function __construct($config)
|
||||
{
|
||||
if (!$config instanceof Config) {
|
||||
throw new ConfigException('config 参数必须是 Yzh\\Config 实例', ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
$this->config = $config;
|
||||
$this->setEnv($config->env);
|
||||
|
||||
if ($this->config->sign_type == Config::SIGN_TYPE_RSA) {
|
||||
$this->rsa = new Rsa($this->config->app_private_key, $this->config->yzh_public_key);
|
||||
$this->sign_type = Config::SIGN_TYPE_RSA;
|
||||
} else if ($this->config->sign_type == Config::SIGN_TYPE_HMAC) {
|
||||
$this->hmac = new Hmac($this->config->app_key);
|
||||
$this->sign_type = Config::SIGN_TYPE_HMAC;
|
||||
} else {
|
||||
throw new ConfigException("签名方式配置错误", ExceptionCode::CONFIG_ERROR_WRONG_SIGN_TYPE);
|
||||
}
|
||||
|
||||
$this->app_key = $this->config->app_key;
|
||||
$this->des = new Des($this->config->app_des3_key);
|
||||
}
|
||||
|
||||
public function setEnv($envName)
|
||||
{
|
||||
if (!in_array($envName, array(self::ENV_PROD, self::ENV_SANDBOX), true)) {
|
||||
throw new ConfigException("请选择正确的服务环境", ExceptionCode::CONFIG_ERROR_WRONG_ENV);
|
||||
}
|
||||
$this->env = $envName;
|
||||
return $this;
|
||||
}
|
||||
|
||||
protected function get($url, $data, $header, $option)
|
||||
{
|
||||
$curl = curl_init();
|
||||
|
||||
curl_setopt_array($curl, array(
|
||||
CURLOPT_URL => $url . '?' . http_build_query($data),
|
||||
CURLOPT_RETURNTRANSFER => true,
|
||||
CURLOPT_CONNECTTIMEOUT => $option->getConnectTimeout(),
|
||||
CURLOPT_TIMEOUT => $option->getTimeout(),
|
||||
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
|
||||
CURLOPT_CUSTOMREQUEST => 'GET',
|
||||
CURLOPT_HTTPHEADER => $header,
|
||||
));
|
||||
|
||||
$response = curl_exec($curl);
|
||||
|
||||
if ($response == false) {
|
||||
$errMsg = curl_error($curl);
|
||||
curl_close($curl);
|
||||
throw new HttpException("请求失败,response:" . $errMsg, 0);
|
||||
}
|
||||
|
||||
$curlInfo = curl_getinfo($curl);
|
||||
curl_close($curl);
|
||||
|
||||
if ($curlInfo['http_code'] != 200) {
|
||||
throw new HttpException("请求失败,response:" . $response, $curlInfo['http_code']);
|
||||
}
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var Option $option
|
||||
*/
|
||||
protected function post($url, $data, $header, $option)
|
||||
{
|
||||
$curl = curl_init();
|
||||
|
||||
curl_setopt_array($curl, array(
|
||||
CURLOPT_URL => $url,
|
||||
CURLOPT_RETURNTRANSFER => true,
|
||||
CURLOPT_CONNECTTIMEOUT => $option->getConnectTimeout(),
|
||||
CURLOPT_TIMEOUT => $option->getTimeout(),
|
||||
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
|
||||
CURLOPT_CUSTOMREQUEST => 'POST',
|
||||
CURLOPT_POSTFIELDS => http_build_query($data),
|
||||
CURLOPT_HTTPHEADER => $header,
|
||||
));
|
||||
$response = curl_exec($curl);
|
||||
|
||||
if ($response == false) {
|
||||
$errMsg = curl_error($curl);
|
||||
curl_close($curl);
|
||||
throw new HttpException("请求失败,response:" . $errMsg, 0);
|
||||
}
|
||||
|
||||
$curlInfo = curl_getinfo($curl);
|
||||
curl_close($curl);
|
||||
|
||||
if ($curlInfo['http_code'] != 200) {
|
||||
throw new HttpException("请求失败,response:" . $response, $curlInfo['http_code']);
|
||||
}
|
||||
return $response;
|
||||
}
|
||||
|
||||
protected function send($method, $path, $request, $responseDataClass, $option = null)
|
||||
{
|
||||
if (!is_null($option) && !$option instanceof Option) {
|
||||
throw new ConfigException("参数 option 必须为 Yzh\\Request\\Option 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
|
||||
if (is_null($option)) {
|
||||
$option = new Option(array('timeout' => $this->config->timeout));
|
||||
}
|
||||
|
||||
// 获取接口请求参数
|
||||
$requestData = $this->getRequestData($request);
|
||||
$responseDecoder = property_exists($request, 'data_type') && $request->data_type == 'encryption' ? $this->des : null;
|
||||
|
||||
// 获取 url 的 path 部分, 将 path 部分拼接到传入的 path 上
|
||||
$baseUrl = self::$env_service_host_map[$this->env][$this::$service_name];
|
||||
if (empty($baseUrl)) {
|
||||
throw new ConfigException('该环境不支持该请求,环境为:' . $this::$service_name, ExceptionCode::CONFIG_ERROR_UNSUPPORT_URL_IN_CURRENT_ENV);
|
||||
}
|
||||
|
||||
$header = array(
|
||||
'Content-Type: application/x-www-form-urlencoded',
|
||||
'dealer-id: ' . $this->config->app_dealer_id,
|
||||
'request-id: ' . $request->getRequestId(),
|
||||
'User-Agent: ' . $this->generateUserAgent()
|
||||
);
|
||||
|
||||
$url = $baseUrl . $path;
|
||||
if ($method == "GET") {
|
||||
$body = $this->get($url, $requestData, $header, $option);
|
||||
} else {
|
||||
$body = $this->post($url, $requestData, $header, $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* @var BaseResponse $resp
|
||||
*/
|
||||
$resp = new $responseDataClass();
|
||||
$respData = json_decode($body, true);
|
||||
if (isset($respData['code'])) {
|
||||
$resp->setCode($respData['code']);
|
||||
}
|
||||
|
||||
if (isset($respData['message'])) {
|
||||
$resp->setMessage($respData['message']);
|
||||
}
|
||||
|
||||
$requestID = "";
|
||||
if (isset($respData['request_id'])) {
|
||||
$requestID = $respData['request_id'];
|
||||
} elseif (isset($respData['requestID'])) {
|
||||
$requestID = $respData['requestID'];
|
||||
}
|
||||
$resp->setRequestID($requestID);
|
||||
|
||||
if (!isset($respData['data']) || !class_exists($responseDataClass)) {
|
||||
return $resp;
|
||||
}
|
||||
|
||||
if (is_string($respData['data']) && !is_null($responseDecoder)) {
|
||||
$data = json_decode($responseDecoder->decrypt($respData['data']), true);
|
||||
} else {
|
||||
$data = $respData['data'];
|
||||
}
|
||||
$resp->setData($data);
|
||||
return $resp;
|
||||
}
|
||||
|
||||
private function generateUserAgent()
|
||||
{
|
||||
return self::SDK_NAME . "/" . self::SDK_VERSION . "/" . PHP_VERSION;
|
||||
}
|
||||
|
||||
private function getRequestData($request)
|
||||
{
|
||||
$encryptedBody = $this->des->encrypt(json_encode($request->getRequestData(), JSON_UNESCAPED_UNICODE));
|
||||
$mess = MessString::rand(16);
|
||||
$nowts = time();
|
||||
if ($this->sign_type == Config::SIGN_TYPE_RSA) {
|
||||
$sign = $this->rsa->sign(sprintf("data=%s&mess=%s×tamp=%d&key=%s", $encryptedBody, $mess, $nowts, $this->config->app_key));
|
||||
} else {
|
||||
$sign = $this->hmac->sign(sprintf("data=%s&mess=%s×tamp=%d&key=%s", $encryptedBody, $mess, $nowts, $this->config->app_key));
|
||||
}
|
||||
return array(
|
||||
'data' => $encryptedBody,
|
||||
'mess' => $mess,
|
||||
'timestamp' => $nowts,
|
||||
'sign' => $sign,
|
||||
'sign_type' => $this->sign_type,
|
||||
);
|
||||
}
|
||||
}
|
||||
63
extend/Yzh/BizlicGxV2H5APIServiceClient.php
Normal file
63
extend/Yzh/BizlicGxV2H5APIServiceClient.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh;
|
||||
|
||||
use Yzh\Exception\ConfigException;
|
||||
use Yzh\Exception\ExceptionCode;
|
||||
use Yzh\Model\Bizlicgxv2h5api\GxV2H5APIPreCollectBizlicMsgRequest;
|
||||
use Yzh\Model\Bizlicgxv2h5api\GxV2H5APIPreCollectBizlicMsgResponse;
|
||||
use Yzh\Model\Bizlicgxv2h5api\GxV2H5APIGetStartUrlRequest;
|
||||
use Yzh\Model\Bizlicgxv2h5api\GxV2H5APIGetStartUrlResponse;
|
||||
use Yzh\Model\Bizlicgxv2h5api\GxV2H5APIGetAicStatusRequest;
|
||||
use Yzh\Model\Bizlicgxv2h5api\GxV2H5APIGetAicStatusResponse;
|
||||
|
||||
/**
|
||||
* 云账户共享大额 H5+API
|
||||
* Class BizlicGxV2H5APIServiceClient
|
||||
*/
|
||||
class BizlicGxV2H5APIServiceClient extends BaseClient
|
||||
{
|
||||
protected static $service_name = 'bizlicgxv2h5apiservice';
|
||||
|
||||
/**
|
||||
* 工商实名信息录入
|
||||
* @param GxV2H5APIPreCollectBizlicMsgRequest $request
|
||||
* @param null $option
|
||||
* @return GxV2H5APIPreCollectBizlicMsgResponse
|
||||
*/
|
||||
public function gxV2H5APIPreCollectBizlicMsg($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof GxV2H5APIPreCollectBizlicMsgRequest) {
|
||||
throw new ConfigException("Bizlicgxv2h5api->gxV2H5APIPreCollectBizlicMsg request 必须是 Yzh\\Model\\Bizlicgxv2h5api\\GxV2H5APIPreCollectBizlicMsgRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('POST', '/api/aic/sharing-economy/api-h5/v1/collect', $request, "Yzh\\Model\\Bizlicgxv2h5api\\GxV2H5APIPreCollectBizlicMsgResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 预启动
|
||||
* @param GxV2H5APIGetStartUrlRequest $request
|
||||
* @param null $option
|
||||
* @return GxV2H5APIGetStartUrlResponse
|
||||
*/
|
||||
public function gxV2H5APIGetStartUrl($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof GxV2H5APIGetStartUrlRequest) {
|
||||
throw new ConfigException("Bizlicgxv2h5api->gxV2H5APIGetStartUrl request 必须是 Yzh\\Model\\Bizlicgxv2h5api\\GxV2H5APIGetStartUrlRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/aic/sharing-economy/api-h5/v1/h5url', $request, "Yzh\\Model\\Bizlicgxv2h5api\\GxV2H5APIGetStartUrlResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询个体工商户状态
|
||||
* @param GxV2H5APIGetAicStatusRequest $request
|
||||
* @param null $option
|
||||
* @return GxV2H5APIGetAicStatusResponse
|
||||
*/
|
||||
public function gxV2H5APIGetAicStatus($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof GxV2H5APIGetAicStatusRequest) {
|
||||
throw new ConfigException("Bizlicgxv2h5api->gxV2H5APIGetAicStatus request 必须是 Yzh\\Model\\Bizlicgxv2h5api\\GxV2H5APIGetAicStatusRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/aic/sharing-economy/api-h5/v1/status', $request, "Yzh\\Model\\Bizlicgxv2h5api\\GxV2H5APIGetAicStatusResponse", $option);
|
||||
}
|
||||
}
|
||||
47
extend/Yzh/BizlicGxV2H5ServiceClient.php
Normal file
47
extend/Yzh/BizlicGxV2H5ServiceClient.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh;
|
||||
|
||||
use Yzh\Exception\ConfigException;
|
||||
use Yzh\Exception\ExceptionCode;
|
||||
use Yzh\Model\Bizlicgxv2h5\GxV2H5GetStartUrlRequest;
|
||||
use Yzh\Model\Bizlicgxv2h5\GxV2H5GetStartUrlResponse;
|
||||
use Yzh\Model\Bizlicgxv2h5\GxV2H5GetAicStatusRequest;
|
||||
use Yzh\Model\Bizlicgxv2h5\GxV2H5GetAicStatusResponse;
|
||||
|
||||
/**
|
||||
* 云账户共享大额 H5
|
||||
* Class BizlicGxV2H5ServiceClient
|
||||
*/
|
||||
class BizlicGxV2H5ServiceClient extends BaseClient
|
||||
{
|
||||
protected static $service_name = 'bizlicgxv2h5service';
|
||||
|
||||
/**
|
||||
* 预启动
|
||||
* @param GxV2H5GetStartUrlRequest $request
|
||||
* @param null $option
|
||||
* @return GxV2H5GetStartUrlResponse
|
||||
*/
|
||||
public function gxV2H5GetStartUrl($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof GxV2H5GetStartUrlRequest) {
|
||||
throw new ConfigException("Bizlicgxv2h5->gxV2H5GetStartUrl request 必须是 Yzh\\Model\\Bizlicgxv2h5\\GxV2H5GetStartUrlRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/aic/sharing-economy/h5/v1/h5url', $request, "Yzh\\Model\\Bizlicgxv2h5\\GxV2H5GetStartUrlResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询个体工商户状态
|
||||
* @param GxV2H5GetAicStatusRequest $request
|
||||
* @param null $option
|
||||
* @return GxV2H5GetAicStatusResponse
|
||||
*/
|
||||
public function gxV2H5GetAicStatus($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof GxV2H5GetAicStatusRequest) {
|
||||
throw new ConfigException("Bizlicgxv2h5->gxV2H5GetAicStatus request 必须是 Yzh\\Model\\Bizlicgxv2h5\\GxV2H5GetAicStatusRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/aic/sharing-economy/h5/v1/status', $request, "Yzh\\Model\\Bizlicgxv2h5\\GxV2H5GetAicStatusResponse", $option);
|
||||
}
|
||||
}
|
||||
63
extend/Yzh/BizlicXjjH5APIServiceClient.php
Normal file
63
extend/Yzh/BizlicXjjH5APIServiceClient.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh;
|
||||
|
||||
use Yzh\Exception\ConfigException;
|
||||
use Yzh\Exception\ExceptionCode;
|
||||
use Yzh\Model\Bizlicxjjh5api\H5PreCollectBizlicMsgRequest;
|
||||
use Yzh\Model\Bizlicxjjh5api\H5PreCollectBizlicMsgResponse;
|
||||
use Yzh\Model\Bizlicxjjh5api\H5APIGetStartUrlRequest;
|
||||
use Yzh\Model\Bizlicxjjh5api\H5APIGetStartUrlResponse;
|
||||
use Yzh\Model\Bizlicxjjh5api\H5APIEcoCityAicStatusRequest;
|
||||
use Yzh\Model\Bizlicxjjh5api\H5APIEcoCityAicStatusResponse;
|
||||
|
||||
/**
|
||||
* 云账户新经济 H5+API
|
||||
* Class BizlicXjjH5APIServiceClient
|
||||
*/
|
||||
class BizlicXjjH5APIServiceClient extends BaseClient
|
||||
{
|
||||
protected static $service_name = 'bizlicxjjh5apiservice';
|
||||
|
||||
/**
|
||||
* 工商实名信息录入
|
||||
* @param H5PreCollectBizlicMsgRequest $request
|
||||
* @param null $option
|
||||
* @return H5PreCollectBizlicMsgResponse
|
||||
*/
|
||||
public function h5PreCollectBizlicMsg($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof H5PreCollectBizlicMsgRequest) {
|
||||
throw new ConfigException("Bizlicxjjh5api->h5PreCollectBizlicMsg request 必须是 Yzh\\Model\\Bizlicxjjh5api\\H5PreCollectBizlicMsgRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('POST', '/api/aic/new-economy/api-h5/v1/collect', $request, "Yzh\\Model\\Bizlicxjjh5api\\H5PreCollectBizlicMsgResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 预启动
|
||||
* @param H5APIGetStartUrlRequest $request
|
||||
* @param null $option
|
||||
* @return H5APIGetStartUrlResponse
|
||||
*/
|
||||
public function h5APIGetStartUrl($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof H5APIGetStartUrlRequest) {
|
||||
throw new ConfigException("Bizlicxjjh5api->h5APIGetStartUrl request 必须是 Yzh\\Model\\Bizlicxjjh5api\\H5APIGetStartUrlRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/aic/new-economy/api-h5/v1/h5url', $request, "Yzh\\Model\\Bizlicxjjh5api\\H5APIGetStartUrlResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询个体工商户状态
|
||||
* @param H5APIEcoCityAicStatusRequest $request
|
||||
* @param null $option
|
||||
* @return H5APIEcoCityAicStatusResponse
|
||||
*/
|
||||
public function h5APIEcoCityAicStatus($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof H5APIEcoCityAicStatusRequest) {
|
||||
throw new ConfigException("Bizlicxjjh5api->h5APIEcoCityAicStatus request 必须是 Yzh\\Model\\Bizlicxjjh5api\\H5APIEcoCityAicStatusRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/aic/new-economy/api-h5/v1/status', $request, "Yzh\\Model\\Bizlicxjjh5api\\H5APIEcoCityAicStatusResponse", $option);
|
||||
}
|
||||
}
|
||||
47
extend/Yzh/BizlicXjjH5ServiceClient.php
Normal file
47
extend/Yzh/BizlicXjjH5ServiceClient.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh;
|
||||
|
||||
use Yzh\Exception\ConfigException;
|
||||
use Yzh\Exception\ExceptionCode;
|
||||
use Yzh\Model\Bizlicxjjh5\H5GetStartUrlRequest;
|
||||
use Yzh\Model\Bizlicxjjh5\H5GetStartUrlResponse;
|
||||
use Yzh\Model\Bizlicxjjh5\H5EcoCityAicStatusRequest;
|
||||
use Yzh\Model\Bizlicxjjh5\H5EcoCityAicStatusResponse;
|
||||
|
||||
/**
|
||||
* 云账户新经济 H5
|
||||
* Class BizlicXjjH5ServiceClient
|
||||
*/
|
||||
class BizlicXjjH5ServiceClient extends BaseClient
|
||||
{
|
||||
protected static $service_name = 'bizlicxjjh5service';
|
||||
|
||||
/**
|
||||
* 预启动
|
||||
* @param H5GetStartUrlRequest $request
|
||||
* @param null $option
|
||||
* @return H5GetStartUrlResponse
|
||||
*/
|
||||
public function h5GetStartUrl($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof H5GetStartUrlRequest) {
|
||||
throw new ConfigException("Bizlicxjjh5->h5GetStartUrl request 必须是 Yzh\\Model\\Bizlicxjjh5\\H5GetStartUrlRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/aic/new-economy/h5/v1/h5url', $request, "Yzh\\Model\\Bizlicxjjh5\\H5GetStartUrlResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询个体工商户状态
|
||||
* @param H5EcoCityAicStatusRequest $request
|
||||
* @param null $option
|
||||
* @return H5EcoCityAicStatusResponse
|
||||
*/
|
||||
public function h5EcoCityAicStatus($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof H5EcoCityAicStatusRequest) {
|
||||
throw new ConfigException("Bizlicxjjh5->h5EcoCityAicStatus request 必须是 Yzh\\Model\\Bizlicxjjh5\\H5EcoCityAicStatusRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/aic/new-economy/h5/v1/status', $request, "Yzh\\Model\\Bizlicxjjh5\\H5EcoCityAicStatusResponse", $option);
|
||||
}
|
||||
}
|
||||
95
extend/Yzh/Config.php
Normal file
95
extend/Yzh/Config.php
Normal file
@@ -0,0 +1,95 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh;
|
||||
|
||||
use Yzh\Exception\ConfigException;
|
||||
use Yzh\Exception\ExceptionCode;
|
||||
|
||||
class Config
|
||||
{
|
||||
public $app_dealer_id;
|
||||
public $app_broker_id;
|
||||
public $app_key;
|
||||
public $sign_type;
|
||||
public $app_private_key;
|
||||
public $yzh_public_key;
|
||||
public $app_des3_key;
|
||||
public $timeout;
|
||||
public $env;
|
||||
public $service_name;
|
||||
|
||||
const SIGN_TYPE_RSA = 'rsa';
|
||||
const SIGN_TYPE_HMAC = 'sha256';
|
||||
|
||||
private function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
public static function newFromArray($params = array())
|
||||
{
|
||||
$config = new Config();
|
||||
|
||||
if (isset($params['app_dealer_id']) && !empty($params['app_dealer_id'])) {
|
||||
$config->app_dealer_id = $params['app_dealer_id'];
|
||||
} else {
|
||||
throw new ConfigException("缺少 app_dealer_id", ExceptionCode::CONFIG_ERROR_LOST_KEY);
|
||||
}
|
||||
|
||||
if (isset($params['app_broker_id']) && !empty($params['app_broker_id'])) {
|
||||
$config->app_broker_id = $params['app_broker_id'];
|
||||
} else {
|
||||
throw new ConfigException("缺少 app_broker_id", ExceptionCode::CONFIG_ERROR_LOST_KEY);
|
||||
}
|
||||
|
||||
if (isset($params['app_key']) && !empty($params['app_key'])) {
|
||||
$config->app_key = $params['app_key'];
|
||||
} else {
|
||||
throw new ConfigException("缺少 app_key", ExceptionCode::CONFIG_ERROR_LOST_KEY);
|
||||
}
|
||||
|
||||
if (isset($params['app_des3_key']) && !empty($params['app_des3_key'])) {
|
||||
$config->app_des3_key = $params['app_des3_key'];
|
||||
} else {
|
||||
throw new ConfigException("缺少 app_des3_key", ExceptionCode::CONFIG_ERROR_LOST_KEY);
|
||||
}
|
||||
|
||||
if (isset($params['sign_type']) && !empty($params['sign_type'])) {
|
||||
$config->sign_type = $params['sign_type'];
|
||||
} else {
|
||||
$config->sign_type = self::SIGN_TYPE_RSA; // 默认是 RSA 签名
|
||||
}
|
||||
|
||||
if (!in_array($config->sign_type, array(self::SIGN_TYPE_RSA, self::SIGN_TYPE_HMAC))) {
|
||||
throw new ConfigException("缺少 app_private_key", ExceptionCode::CONFIG_ERROR_WRONG_SIGN_TYPE);
|
||||
}
|
||||
|
||||
if ($config->sign_type == self::SIGN_TYPE_RSA) {
|
||||
if (isset($params['app_private_key']) && !empty($params['app_private_key'])) {
|
||||
$config->app_private_key = $params['app_private_key'];
|
||||
} else {
|
||||
throw new ConfigException("缺少 app_private_key", ExceptionCode::CONFIG_ERROR_LOST_KEY);
|
||||
}
|
||||
|
||||
if (isset($params['yzh_public_key']) && !empty($params['yzh_public_key'])) {
|
||||
$config->yzh_public_key = $params['yzh_public_key'];
|
||||
} else {
|
||||
throw new ConfigException("缺少 yzh_public_key", ExceptionCode::CONFIG_ERROR_LOST_KEY);
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($params['timeout']) && intval($params['timeout']) > 0) {
|
||||
$config->timeout = intval($params['timeout']);
|
||||
}
|
||||
|
||||
if (isset($params['env']) && !empty($params['env'])) {
|
||||
$config->env = $params['env'];
|
||||
} else {
|
||||
$config->env = BaseClient::ENV_PROD;
|
||||
}
|
||||
|
||||
if (isset($params["service_name"]) && !empty($params["service_name"])) {
|
||||
$config->service_name = $params["service_name"];
|
||||
}
|
||||
return $config;
|
||||
}
|
||||
}
|
||||
49
extend/Yzh/CustomClient.php
Normal file
49
extend/Yzh/CustomClient.php
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh;
|
||||
|
||||
use Yzh\Exception\ConfigException;
|
||||
use Yzh\Exception\ExceptionCode;
|
||||
use Yzh\Exception\RunTimeException;
|
||||
use Yzh\Model\Custom\CustomRequest;
|
||||
use Yzh\Model\Custom\CustomResponse;
|
||||
use Yzh\Model\Custom\CustomResponseData;
|
||||
|
||||
/**
|
||||
* 通用请求函数
|
||||
*/
|
||||
class CustomClient extends BaseClient {
|
||||
const METHOD_GET = "GET";
|
||||
const METHOD_POST = "POST";
|
||||
|
||||
/**
|
||||
* 发起请求
|
||||
* @param string $method 请求方式 GET/POST
|
||||
* @param string $url 请求地址
|
||||
* @param Object $request 请求参数
|
||||
* @param Object $response 响应参数
|
||||
* @param null $option
|
||||
* @throws ConfigException
|
||||
* @throws RunTimeException
|
||||
*/
|
||||
public function doRequest($method, $url, $request, $response, $option = null)
|
||||
{
|
||||
if (empty($this->config->service_name)) {
|
||||
throw new ConfigException("config service_name 必须设置", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
self::$service_name= $this->config->service_name;
|
||||
if (!$request instanceof CustomRequest) {
|
||||
throw new ConfigException("request 必须是 Yzh\Model\CustomerRequest 的子类", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
if (!$response instanceof CustomResponseData) {
|
||||
throw new ConfigException("response 必须是 Yzh\Model\CustomerResponseData 的子类", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
$method = strtoupper($method);
|
||||
$res = $this->send($method, $url, $request, "Yzh\\Model\\Custom\\CustomResponse", $option);
|
||||
if (!$res instanceof CustomResponse) {
|
||||
throw new RunTimeException("系统错误");
|
||||
}
|
||||
$res->setCustomerData($response);
|
||||
return $res;
|
||||
}
|
||||
}
|
||||
177
extend/Yzh/DataServiceClient.php
Normal file
177
extend/Yzh/DataServiceClient.php
Normal file
@@ -0,0 +1,177 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh;
|
||||
|
||||
use Yzh\Exception\ConfigException;
|
||||
use Yzh\Exception\ExceptionCode;
|
||||
|
||||
|
||||
use Yzh\Model\Dataservice\ListDailyOrderRequest;
|
||||
use Yzh\Model\Dataservice\ListDailyOrderResponse;
|
||||
use Yzh\Model\Dataservice\ListDailyOrderV2Request;
|
||||
use Yzh\Model\Dataservice\ListDailyOrderV2Response;
|
||||
use Yzh\Model\Dataservice\GetDailyOrderFileRequest;
|
||||
use Yzh\Model\Dataservice\GetDailyOrderFileResponse;
|
||||
use Yzh\Model\Dataservice\GetDailyOrderFileV2Request;
|
||||
use Yzh\Model\Dataservice\GetDailyOrderFileV2Response;
|
||||
use Yzh\Model\Dataservice\ListDailyBillRequest;
|
||||
use Yzh\Model\Dataservice\ListDailyBillResponse;
|
||||
use Yzh\Model\Dataservice\GetDailyBillFileV2Request;
|
||||
use Yzh\Model\Dataservice\GetDailyBillFileV2Response;
|
||||
use Yzh\Model\Dataservice\ListDealerRechargeRecordV2Request;
|
||||
use Yzh\Model\Dataservice\ListDealerRechargeRecordV2Response;
|
||||
use Yzh\Model\Dataservice\ListBalanceDailyStatementRequest;
|
||||
use Yzh\Model\Dataservice\ListBalanceDailyStatementResponse;
|
||||
use Yzh\Model\Dataservice\ListDailyOrderSummaryRequest;
|
||||
use Yzh\Model\Dataservice\ListDailyOrderSummaryResponse;
|
||||
use Yzh\Model\Dataservice\ListMonthlyOrderSummaryRequest;
|
||||
use Yzh\Model\Dataservice\ListMonthlyOrderSummaryResponse;
|
||||
|
||||
/**
|
||||
* 对账文件获取
|
||||
* Class DataServiceClient
|
||||
*/
|
||||
class DataServiceClient extends BaseClient
|
||||
{
|
||||
protected static $service_name = 'dataservice';
|
||||
|
||||
/**
|
||||
* 查询日订单数据
|
||||
* @param ListDailyOrderRequest $request
|
||||
* @param null $option
|
||||
* @return ListDailyOrderResponse
|
||||
*/
|
||||
public function listDailyOrder($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof ListDailyOrderRequest) {
|
||||
throw new ConfigException("Dataservice->listDailyOrder request 必须是 Yzh\\Model\\Dataservice\\ListDailyOrderRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/dataservice/v1/orders', $request, "Yzh\\Model\\Dataservice\\ListDailyOrderResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询日订单数据(支付和退款订单)
|
||||
* @param ListDailyOrderV2Request $request
|
||||
* @param null $option
|
||||
* @return ListDailyOrderV2Response
|
||||
*/
|
||||
public function listDailyOrderV2($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof ListDailyOrderV2Request) {
|
||||
throw new ConfigException("Dataservice->listDailyOrderV2 request 必须是 Yzh\\Model\\Dataservice\\ListDailyOrderV2Request 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/dataservice/v2/orders', $request, "Yzh\\Model\\Dataservice\\ListDailyOrderV2Response", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询日订单文件
|
||||
* @param GetDailyOrderFileRequest $request
|
||||
* @param null $option
|
||||
* @return GetDailyOrderFileResponse
|
||||
*/
|
||||
public function getDailyOrderFile($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof GetDailyOrderFileRequest) {
|
||||
throw new ConfigException("Dataservice->getDailyOrderFile request 必须是 Yzh\\Model\\Dataservice\\GetDailyOrderFileRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/dataservice/v1/order/downloadurl', $request, "Yzh\\Model\\Dataservice\\GetDailyOrderFileResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询日订单文件(支付和退款订单)
|
||||
* @param GetDailyOrderFileV2Request $request
|
||||
* @param null $option
|
||||
* @return GetDailyOrderFileV2Response
|
||||
*/
|
||||
public function getDailyOrderFileV2($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof GetDailyOrderFileV2Request) {
|
||||
throw new ConfigException("Dataservice->getDailyOrderFileV2 request 必须是 Yzh\\Model\\Dataservice\\GetDailyOrderFileV2Request 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/dataservice/v1/order/day/url', $request, "Yzh\\Model\\Dataservice\\GetDailyOrderFileV2Response", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询日流水数据
|
||||
* @param ListDailyBillRequest $request
|
||||
* @param null $option
|
||||
* @return ListDailyBillResponse
|
||||
*/
|
||||
public function listDailyBill($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof ListDailyBillRequest) {
|
||||
throw new ConfigException("Dataservice->listDailyBill request 必须是 Yzh\\Model\\Dataservice\\ListDailyBillRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/dataservice/v1/bills', $request, "Yzh\\Model\\Dataservice\\ListDailyBillResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询日流水文件
|
||||
* @param GetDailyBillFileV2Request $request
|
||||
* @param null $option
|
||||
* @return GetDailyBillFileV2Response
|
||||
*/
|
||||
public function getDailyBillFileV2($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof GetDailyBillFileV2Request) {
|
||||
throw new ConfigException("Dataservice->getDailyBillFileV2 request 必须是 Yzh\\Model\\Dataservice\\GetDailyBillFileV2Request 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/dataservice/v2/bill/downloadurl', $request, "Yzh\\Model\\Dataservice\\GetDailyBillFileV2Response", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询平台企业预付业务服务费记录
|
||||
* @param ListDealerRechargeRecordV2Request $request
|
||||
* @param null $option
|
||||
* @return ListDealerRechargeRecordV2Response
|
||||
*/
|
||||
public function listDealerRechargeRecordV2($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof ListDealerRechargeRecordV2Request) {
|
||||
throw new ConfigException("Dataservice->listDealerRechargeRecordV2 request 必须是 Yzh\\Model\\Dataservice\\ListDealerRechargeRecordV2Request 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/dataservice/v2/recharge-record', $request, "Yzh\\Model\\Dataservice\\ListDealerRechargeRecordV2Response", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询余额日账单数据
|
||||
* @param ListBalanceDailyStatementRequest $request
|
||||
* @param null $option
|
||||
* @return ListBalanceDailyStatementResponse
|
||||
*/
|
||||
public function listBalanceDailyStatement($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof ListBalanceDailyStatementRequest) {
|
||||
throw new ConfigException("Dataservice->listBalanceDailyStatement request 必须是 Yzh\\Model\\Dataservice\\ListBalanceDailyStatementRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/dataservice/v1/statements-daily', $request, "Yzh\\Model\\Dataservice\\ListBalanceDailyStatementResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询日订单汇总数据
|
||||
* @param ListDailyOrderSummaryRequest $request
|
||||
* @param null $option
|
||||
* @return ListDailyOrderSummaryResponse
|
||||
*/
|
||||
public function listDailyOrderSummary($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof ListDailyOrderSummaryRequest) {
|
||||
throw new ConfigException("Dataservice->listDailyOrderSummary request 必须是 Yzh\\Model\\Dataservice\\ListDailyOrderSummaryRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/dataservice/v2/order/daily-summary', $request, "Yzh\\Model\\Dataservice\\ListDailyOrderSummaryResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询月订单汇总数据
|
||||
* @param ListMonthlyOrderSummaryRequest $request
|
||||
* @param null $option
|
||||
* @return ListMonthlyOrderSummaryResponse
|
||||
*/
|
||||
public function listMonthlyOrderSummary($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof ListMonthlyOrderSummaryRequest) {
|
||||
throw new ConfigException("Dataservice->listMonthlyOrderSummary request 必须是 Yzh\\Model\\Dataservice\\ListMonthlyOrderSummaryRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/dataservice/v2/order/monthly-summary', $request, "Yzh\\Model\\Dataservice\\ListMonthlyOrderSummaryResponse", $option);
|
||||
}
|
||||
}
|
||||
7
extend/Yzh/Exception/BaseException.php
Normal file
7
extend/Yzh/Exception/BaseException.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Exception;
|
||||
|
||||
class BaseException extends \Exception
|
||||
{
|
||||
}
|
||||
15
extend/Yzh/Exception/ConfigException.php
Normal file
15
extend/Yzh/Exception/ConfigException.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Exception;
|
||||
|
||||
class ConfigException extends BaseException
|
||||
{
|
||||
public function __construct($message = "", $code = 0)
|
||||
{
|
||||
$msg = ExceptionCode::getErrorMessage($code);
|
||||
if (!empty($message)) {
|
||||
$msg .= ": " . $message;
|
||||
}
|
||||
parent::__construct((string) $msg, (int) $code);
|
||||
}
|
||||
}
|
||||
36
extend/Yzh/Exception/ExceptionCode.php
Normal file
36
extend/Yzh/Exception/ExceptionCode.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Exception;
|
||||
|
||||
final class ExceptionCode
|
||||
{
|
||||
const CONFIG_ERROR_WRONG_PARAM = 10000;
|
||||
const CONFIG_ERROR_WRONG_ENV = 1001;
|
||||
const CONFIG_ERROR_LACK_PACKAGE = 10002;
|
||||
const CONFIG_ERROR_WRONG_SIGN_TYPE = 10003;
|
||||
const CONFIG_ERROR_LOST_KEY = 20000;
|
||||
const CONFIG_ERROR_RSA_KEY_INVALID = 20001;
|
||||
const CONFIG_ERROR_UNSUPPORT_URL_IN_CURRENT_ENV = 20002;
|
||||
const PRIVATE_KEY_ENCRYPT_FAIL = 20003;
|
||||
const PRIVATE_KEY_DECRYPT_FAIL = 2004;
|
||||
const PUBLIC_KEY_DECRYPT_FAIL = 20005;
|
||||
const DES_KEY_ENCRYPT_FAIL = 2006;
|
||||
const DES_KEY_DECRYPT_FAIL = 2007;
|
||||
|
||||
private static $error_message_map = array(
|
||||
self::CONFIG_ERROR_LOST_KEY => '[客户端] 缺少配置参数',
|
||||
self::CONFIG_ERROR_RSA_KEY_INVALID => '[客户端] RSA 密钥格式错误',
|
||||
);
|
||||
|
||||
public static function getErrorMessage($code)
|
||||
{
|
||||
if (!is_int($code)) {
|
||||
return 'code 必须是整型';
|
||||
}
|
||||
|
||||
if (!array_key_exists($code, self::$error_message_map)) {
|
||||
return "未知错误";
|
||||
}
|
||||
return self::$error_message_map[$code];
|
||||
}
|
||||
}
|
||||
7
extend/Yzh/Exception/HttpException.php
Normal file
7
extend/Yzh/Exception/HttpException.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Exception;
|
||||
|
||||
class HttpException extends BaseException
|
||||
{
|
||||
}
|
||||
7
extend/Yzh/Exception/RunTimeException.php
Normal file
7
extend/Yzh/Exception/RunTimeException.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Exception;
|
||||
|
||||
class RunTimeException extends BaseException
|
||||
{
|
||||
}
|
||||
79
extend/Yzh/H5UserSignServiceClient.php
Normal file
79
extend/Yzh/H5UserSignServiceClient.php
Normal file
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh;
|
||||
|
||||
use Yzh\Exception\ConfigException;
|
||||
use Yzh\Exception\ExceptionCode;
|
||||
use Yzh\Model\H5usersign\H5UserPresignRequest;
|
||||
use Yzh\Model\H5usersign\H5UserPresignResponse;
|
||||
use Yzh\Model\H5usersign\H5UserSignRequest;
|
||||
use Yzh\Model\H5usersign\H5UserSignResponse;
|
||||
use Yzh\Model\H5usersign\GetH5UserSignStatusRequest;
|
||||
use Yzh\Model\H5usersign\GetH5UserSignStatusResponse;
|
||||
use Yzh\Model\H5usersign\H5UserReleaseRequest;
|
||||
use Yzh\Model\H5usersign\H5UserReleaseResponse;
|
||||
|
||||
/**
|
||||
* H5 签约
|
||||
* Class H5UserSignServiceClient
|
||||
*/
|
||||
class H5UserSignServiceClient extends BaseClient
|
||||
{
|
||||
protected static $service_name = 'h5usersignservice';
|
||||
|
||||
/**
|
||||
* 预申请签约
|
||||
* @param H5UserPresignRequest $request
|
||||
* @param null $option
|
||||
* @return H5UserPresignResponse
|
||||
*/
|
||||
public function h5UserPresign($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof H5UserPresignRequest) {
|
||||
throw new ConfigException("H5usersign->h5UserPresign request 必须是 Yzh\\Model\\H5usersign\\H5UserPresignRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('POST', '/api/sdk/v1/presign', $request, "Yzh\\Model\\H5usersign\\H5UserPresignResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 申请签约
|
||||
* @param H5UserSignRequest $request
|
||||
* @param null $option
|
||||
* @return H5UserSignResponse
|
||||
*/
|
||||
public function h5UserSign($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof H5UserSignRequest) {
|
||||
throw new ConfigException("H5usersign->h5UserSign request 必须是 Yzh\\Model\\H5usersign\\H5UserSignRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/sdk/v1/sign/h5', $request, "Yzh\\Model\\H5usersign\\H5UserSignResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取用户签约状态
|
||||
* @param GetH5UserSignStatusRequest $request
|
||||
* @param null $option
|
||||
* @return GetH5UserSignStatusResponse
|
||||
*/
|
||||
public function getH5UserSignStatus($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof GetH5UserSignStatusRequest) {
|
||||
throw new ConfigException("H5usersign->getH5UserSignStatus request 必须是 Yzh\\Model\\H5usersign\\GetH5UserSignStatusRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/sdk/v1/sign/user/status', $request, "Yzh\\Model\\H5usersign\\GetH5UserSignStatusResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户解约(测试账号专用接口)
|
||||
* @param H5UserReleaseRequest $request
|
||||
* @param null $option
|
||||
* @return H5UserReleaseResponse
|
||||
*/
|
||||
public function h5UserRelease($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof H5UserReleaseRequest) {
|
||||
throw new ConfigException("H5usersign->h5UserRelease request 必须是 Yzh\\Model\\H5usersign\\H5UserReleaseRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('POST', '/api/sdk/v1/sign/release', $request, "Yzh\\Model\\H5usersign\\H5UserReleaseResponse", $option);
|
||||
}
|
||||
}
|
||||
127
extend/Yzh/InvoiceClient.php
Normal file
127
extend/Yzh/InvoiceClient.php
Normal file
@@ -0,0 +1,127 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh;
|
||||
|
||||
use Yzh\Exception\ConfigException;
|
||||
use Yzh\Exception\ExceptionCode;
|
||||
use Yzh\Model\Invoice\GetInvoiceStatRequest;
|
||||
use Yzh\Model\Invoice\GetInvoiceStatResponse;
|
||||
use Yzh\Model\Invoice\GetInvoiceAmountRequest;
|
||||
use Yzh\Model\Invoice\GetInvoiceAmountResponse;
|
||||
use Yzh\Model\Invoice\ApplyInvoiceRequest;
|
||||
use Yzh\Model\Invoice\ApplyInvoiceResponse;
|
||||
use Yzh\Model\Invoice\GetInvoiceStatusRequest;
|
||||
use Yzh\Model\Invoice\GetInvoiceStatusResponse;
|
||||
use Yzh\Model\Invoice\GetInvoiceInformationRequest;
|
||||
use Yzh\Model\Invoice\GetInvoiceInformationResponse;
|
||||
use Yzh\Model\Invoice\GetInvoiceFileRequest;
|
||||
use Yzh\Model\Invoice\GetInvoiceFileResponse;
|
||||
use Yzh\Model\Invoice\SendReminderEmailRequest;
|
||||
use Yzh\Model\Invoice\SendReminderEmailResponse;
|
||||
|
||||
/**
|
||||
* 发票开具
|
||||
* Class InvoiceClient
|
||||
*/
|
||||
class InvoiceClient extends BaseClient
|
||||
{
|
||||
protected static $service_name = 'invoice';
|
||||
|
||||
/**
|
||||
* 查询平台企业已开具和待开具发票金额
|
||||
* @param GetInvoiceStatRequest $request
|
||||
* @param null $option
|
||||
* @return GetInvoiceStatResponse
|
||||
*/
|
||||
public function getInvoiceStat($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof GetInvoiceStatRequest) {
|
||||
throw new ConfigException("Invoice->getInvoiceStat request 必须是 Yzh\\Model\\Invoice\\GetInvoiceStatRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('GET', '/api/payment/v1/invoice-stat', $request, "Yzh\\Model\\Invoice\\GetInvoiceStatResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询可开具发票额度和发票开具信息
|
||||
* @param GetInvoiceAmountRequest $request
|
||||
* @param null $option
|
||||
* @return GetInvoiceAmountResponse
|
||||
*/
|
||||
public function getInvoiceAmount($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof GetInvoiceAmountRequest) {
|
||||
throw new ConfigException("Invoice->getInvoiceAmount request 必须是 Yzh\\Model\\Invoice\\GetInvoiceAmountRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('POST', '/api/invoice/v2/invoice-amount', $request, "Yzh\\Model\\Invoice\\GetInvoiceAmountResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 发票开具申请
|
||||
* @param ApplyInvoiceRequest $request
|
||||
* @param null $option
|
||||
* @return ApplyInvoiceResponse
|
||||
*/
|
||||
public function applyInvoice($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof ApplyInvoiceRequest) {
|
||||
throw new ConfigException("Invoice->applyInvoice request 必须是 Yzh\\Model\\Invoice\\ApplyInvoiceRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('POST', '/api/invoice/v2/apply', $request, "Yzh\\Model\\Invoice\\ApplyInvoiceResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询发票开具申请状态
|
||||
* @param GetInvoiceStatusRequest $request
|
||||
* @param null $option
|
||||
* @return GetInvoiceStatusResponse
|
||||
*/
|
||||
public function getInvoiceStatus($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof GetInvoiceStatusRequest) {
|
||||
throw new ConfigException("Invoice->getInvoiceStatus request 必须是 Yzh\\Model\\Invoice\\GetInvoiceStatusRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('POST', '/api/invoice/v2/invoice/invoice-status', $request, "Yzh\\Model\\Invoice\\GetInvoiceStatusResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询发票信息
|
||||
* @param GetInvoiceInformationRequest $request
|
||||
* @param null $option
|
||||
* @return GetInvoiceInformationResponse
|
||||
*/
|
||||
public function getInvoiceInformation($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof GetInvoiceInformationRequest) {
|
||||
throw new ConfigException("Invoice->getInvoiceInformation request 必须是 Yzh\\Model\\Invoice\\GetInvoiceInformationRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('POST', '/api/invoice/v2/invoice-face-information', $request, "Yzh\\Model\\Invoice\\GetInvoiceInformationResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 下载 PDF 版发票
|
||||
* @param GetInvoiceFileRequest $request
|
||||
* @param null $option
|
||||
* @return GetInvoiceFileResponse
|
||||
*/
|
||||
public function getInvoiceFile($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof GetInvoiceFileRequest) {
|
||||
throw new ConfigException("Invoice->getInvoiceFile request 必须是 Yzh\\Model\\Invoice\\GetInvoiceFileRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('POST', '/api/invoice/v2/invoice/invoice-pdf', $request, "Yzh\\Model\\Invoice\\GetInvoiceFileResponse", $option);
|
||||
}
|
||||
|
||||
/**
|
||||
* 发送发票开具成功通知邮件
|
||||
* @param SendReminderEmailRequest $request
|
||||
* @param null $option
|
||||
* @return SendReminderEmailResponse
|
||||
*/
|
||||
public function sendReminderEmail($request, $option = null)
|
||||
{
|
||||
if (!$request instanceof SendReminderEmailRequest) {
|
||||
throw new ConfigException("Invoice->sendReminderEmail request 必须是 Yzh\\Model\\Invoice\\SendReminderEmailRequest 实例", ExceptionCode::CONFIG_ERROR_WRONG_PARAM);
|
||||
}
|
||||
return $this->send('POST', '/api/invoice/v2/invoice/reminder/email', $request, "Yzh\\Model\\Invoice\\SendReminderEmailResponse", $option);
|
||||
}
|
||||
}
|
||||
32
extend/Yzh/Model/Apiusersign/ApiUseSignContractRequest.php
Normal file
32
extend/Yzh/Model/Apiusersign/ApiUseSignContractRequest.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Apiusersign;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 获取协议预览 URL 请求
|
||||
* Class ApiUseSignContractRequest
|
||||
*/
|
||||
class ApiUseSignContractRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_id;
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string
|
||||
*/
|
||||
public $broker_id;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
33
extend/Yzh/Model/Apiusersign/ApiUseSignContractResponse.php
Normal file
33
extend/Yzh/Model/Apiusersign/ApiUseSignContractResponse.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Apiusersign;
|
||||
|
||||
use Yzh\Model\BaseResponse;
|
||||
use Yzh\Model\ResponseInterface;
|
||||
|
||||
/**
|
||||
* 获取协议预览 URL 返回
|
||||
* Class ApiUseSignContractResponse
|
||||
*/
|
||||
class ApiUseSignContractResponse extends BaseResponse implements ResponseInterface
|
||||
{
|
||||
/**
|
||||
* 获取数据对象
|
||||
* @return ApiUseSignContractResponseData
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置数据对象
|
||||
* @param array $data
|
||||
* @return self
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = new ApiUseSignContractResponseData($data);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Apiusersign;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
use Yzh\Model\ResponseDataInterface;
|
||||
|
||||
/**
|
||||
* 获取协议预览 URL 返回
|
||||
* Class ApiUseSignContractResponseData
|
||||
*/
|
||||
class ApiUseSignContractResponseData extends BaseModel implements ResponseDataInterface
|
||||
{
|
||||
/**
|
||||
* 预览跳转 URL
|
||||
* @var string
|
||||
*/
|
||||
protected $url;
|
||||
/**
|
||||
* 协议名称
|
||||
* @var string
|
||||
*/
|
||||
protected $title;
|
||||
|
||||
/**
|
||||
* 预览跳转 URL
|
||||
* @var string $url
|
||||
*/
|
||||
public function setUrl($url)
|
||||
{
|
||||
$this->url = $url;
|
||||
}
|
||||
|
||||
/**
|
||||
* 预览跳转 URL
|
||||
* @return string
|
||||
*/
|
||||
public function getUrl()
|
||||
{
|
||||
return $this->url;
|
||||
}
|
||||
|
||||
/**
|
||||
* 协议名称
|
||||
* @var string $title
|
||||
*/
|
||||
public function setTitle($title)
|
||||
{
|
||||
$this->title = $title;
|
||||
}
|
||||
|
||||
/**
|
||||
* 协议名称
|
||||
* @return string
|
||||
*/
|
||||
public function getTitle()
|
||||
{
|
||||
return $this->title;
|
||||
}
|
||||
}
|
||||
32
extend/Yzh/Model/Apiusersign/ApiUserSignContractRequest.php
Normal file
32
extend/Yzh/Model/Apiusersign/ApiUserSignContractRequest.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Apiusersign;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 获取协议预览 URL 请求 V2
|
||||
* Class ApiUserSignContractRequest
|
||||
*/
|
||||
class ApiUserSignContractRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_id;
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string
|
||||
*/
|
||||
public $broker_id;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
33
extend/Yzh/Model/Apiusersign/ApiUserSignContractResponse.php
Normal file
33
extend/Yzh/Model/Apiusersign/ApiUserSignContractResponse.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Apiusersign;
|
||||
|
||||
use Yzh\Model\BaseResponse;
|
||||
use Yzh\Model\ResponseInterface;
|
||||
|
||||
/**
|
||||
* 获取协议预览 URL 返回 V2
|
||||
* Class ApiUserSignContractResponse
|
||||
*/
|
||||
class ApiUserSignContractResponse extends BaseResponse implements ResponseInterface
|
||||
{
|
||||
/**
|
||||
* 获取数据对象
|
||||
* @return ApiUserSignContractResponseData
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置数据对象
|
||||
* @param array $data
|
||||
* @return self
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = new ApiUserSignContractResponseData($data);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Apiusersign;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
use Yzh\Model\ResponseDataInterface;
|
||||
|
||||
/**
|
||||
* 获取协议预览 URL 返回 V2
|
||||
* Class ApiUserSignContractResponseData
|
||||
*/
|
||||
class ApiUserSignContractResponseData extends BaseModel implements ResponseDataInterface
|
||||
{
|
||||
/**
|
||||
* 预览跳转 URL
|
||||
* @var string
|
||||
*/
|
||||
protected $url;
|
||||
/**
|
||||
* 协议名称
|
||||
* @var string
|
||||
*/
|
||||
protected $title;
|
||||
|
||||
/**
|
||||
* 预览跳转 URL
|
||||
* @var string $url
|
||||
*/
|
||||
public function setUrl($url)
|
||||
{
|
||||
$this->url = $url;
|
||||
}
|
||||
|
||||
/**
|
||||
* 预览跳转 URL
|
||||
* @return string
|
||||
*/
|
||||
public function getUrl()
|
||||
{
|
||||
return $this->url;
|
||||
}
|
||||
|
||||
/**
|
||||
* 协议名称
|
||||
* @var string $title
|
||||
*/
|
||||
public function setTitle($title)
|
||||
{
|
||||
$this->title = $title;
|
||||
}
|
||||
|
||||
/**
|
||||
* 协议名称
|
||||
* @return string
|
||||
*/
|
||||
public function getTitle()
|
||||
{
|
||||
return $this->title;
|
||||
}
|
||||
}
|
||||
47
extend/Yzh/Model/Apiusersign/ApiUserSignReleaseRequest.php
Normal file
47
extend/Yzh/Model/Apiusersign/ApiUserSignReleaseRequest.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Apiusersign;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 用户解约(测试账号专用接口)请求
|
||||
* Class ApiUserSignReleaseRequest
|
||||
*/
|
||||
class ApiUserSignReleaseRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string
|
||||
*/
|
||||
public $broker_id;
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_id;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
public $real_name;
|
||||
/**
|
||||
* 证件号码
|
||||
* @var string
|
||||
*/
|
||||
public $id_card;
|
||||
/**
|
||||
* 证件类型 idcard:身份证 passport:护照 mtphkm:港澳居民来往内地通行证 mtpt:台湾居民往来大陆通行证 rphkm:中华人民共和国港澳居民居住证 rpt:中华人民共和国台湾居民居住证 fpr:外国人永久居留身份证 ffwp:中华人民共和国外国人就业许可证书
|
||||
* @var string
|
||||
*/
|
||||
public $card_type;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
33
extend/Yzh/Model/Apiusersign/ApiUserSignReleaseResponse.php
Normal file
33
extend/Yzh/Model/Apiusersign/ApiUserSignReleaseResponse.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Apiusersign;
|
||||
|
||||
use Yzh\Model\BaseResponse;
|
||||
use Yzh\Model\ResponseInterface;
|
||||
|
||||
/**
|
||||
* 用户解约(测试账号专用接口)返回
|
||||
* Class ApiUserSignReleaseResponse
|
||||
*/
|
||||
class ApiUserSignReleaseResponse extends BaseResponse implements ResponseInterface
|
||||
{
|
||||
/**
|
||||
* 获取数据对象
|
||||
* @return ApiUserSignReleaseResponseData
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置数据对象
|
||||
* @param array $data
|
||||
* @return self
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = new ApiUserSignReleaseResponseData($data);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Apiusersign;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
use Yzh\Model\ResponseDataInterface;
|
||||
|
||||
/**
|
||||
* 用户解约(测试账号专用接口)返回
|
||||
* Class ApiUserSignReleaseResponseData
|
||||
*/
|
||||
class ApiUserSignReleaseResponseData extends BaseModel implements ResponseDataInterface
|
||||
{
|
||||
/**
|
||||
* 是否解约成功
|
||||
* @var string
|
||||
*/
|
||||
protected $status;
|
||||
|
||||
/**
|
||||
* 是否解约成功
|
||||
* @var string $status
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否解约成功
|
||||
* @return string
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
}
|
||||
47
extend/Yzh/Model/Apiusersign/ApiUserSignRequest.php
Normal file
47
extend/Yzh/Model/Apiusersign/ApiUserSignRequest.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Apiusersign;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 用户签约请求
|
||||
* Class ApiUserSignRequest
|
||||
*/
|
||||
class ApiUserSignRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string
|
||||
*/
|
||||
public $broker_id;
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_id;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
public $real_name;
|
||||
/**
|
||||
* 证件号码
|
||||
* @var string
|
||||
*/
|
||||
public $id_card;
|
||||
/**
|
||||
* 证件类型 idcard:身份证 passport:护照 mtphkm:港澳居民来往内地通行证 mtpt:台湾居民往来大陆通行证 rphkm:中华人民共和国港澳居民居住证 rpt:中华人民共和国台湾居民居住证 fpr:外国人永久居留身份证 ffwp:中华人民共和国外国人就业许可证书
|
||||
* @var string
|
||||
*/
|
||||
public $card_type;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
33
extend/Yzh/Model/Apiusersign/ApiUserSignResponse.php
Normal file
33
extend/Yzh/Model/Apiusersign/ApiUserSignResponse.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Apiusersign;
|
||||
|
||||
use Yzh\Model\BaseResponse;
|
||||
use Yzh\Model\ResponseInterface;
|
||||
|
||||
/**
|
||||
* 用户签约返回
|
||||
* Class ApiUserSignResponse
|
||||
*/
|
||||
class ApiUserSignResponse extends BaseResponse implements ResponseInterface
|
||||
{
|
||||
/**
|
||||
* 获取数据对象
|
||||
* @return ApiUserSignResponseData
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置数据对象
|
||||
* @param array $data
|
||||
* @return self
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = new ApiUserSignResponseData($data);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
37
extend/Yzh/Model/Apiusersign/ApiUserSignResponseData.php
Normal file
37
extend/Yzh/Model/Apiusersign/ApiUserSignResponseData.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Apiusersign;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
use Yzh\Model\ResponseDataInterface;
|
||||
|
||||
/**
|
||||
* 用户签约返回
|
||||
* Class ApiUserSignResponseData
|
||||
*/
|
||||
class ApiUserSignResponseData extends BaseModel implements ResponseDataInterface
|
||||
{
|
||||
/**
|
||||
* 是否签约成功
|
||||
* @var string
|
||||
*/
|
||||
protected $status;
|
||||
|
||||
/**
|
||||
* 是否签约成功
|
||||
* @var string $status
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否签约成功
|
||||
* @return string
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
}
|
||||
42
extend/Yzh/Model/Apiusersign/GetApiUserSignStatusRequest.php
Normal file
42
extend/Yzh/Model/Apiusersign/GetApiUserSignStatusRequest.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Apiusersign;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 获取用户签约状态请求
|
||||
* Class GetApiUserSignStatusRequest
|
||||
*/
|
||||
class GetApiUserSignStatusRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_id;
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string
|
||||
*/
|
||||
public $broker_id;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
public $real_name;
|
||||
/**
|
||||
* 证件号码
|
||||
* @var string
|
||||
*/
|
||||
public $id_card;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Apiusersign;
|
||||
|
||||
use Yzh\Model\BaseResponse;
|
||||
use Yzh\Model\ResponseInterface;
|
||||
|
||||
/**
|
||||
* 获取用户签约状态返回
|
||||
* Class GetApiUserSignStatusResponse
|
||||
*/
|
||||
class GetApiUserSignStatusResponse extends BaseResponse implements ResponseInterface
|
||||
{
|
||||
/**
|
||||
* 获取数据对象
|
||||
* @return GetApiUserSignStatusResponseData
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置数据对象
|
||||
* @param array $data
|
||||
* @return self
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = new GetApiUserSignStatusResponseData($data);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Apiusersign;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
use Yzh\Model\ResponseDataInterface;
|
||||
|
||||
/**
|
||||
* 获取用户签约状态返回
|
||||
* Class GetApiUserSignStatusResponseData
|
||||
*/
|
||||
class GetApiUserSignStatusResponseData extends BaseModel implements ResponseDataInterface
|
||||
{
|
||||
/**
|
||||
* 签约时间
|
||||
* @var string
|
||||
*/
|
||||
protected $signed_at;
|
||||
/**
|
||||
* 用户签约状态
|
||||
* @var string
|
||||
*/
|
||||
protected $status;
|
||||
|
||||
/**
|
||||
* 签约时间
|
||||
* @var string $signed_at
|
||||
*/
|
||||
public function setSignedAt($signed_at)
|
||||
{
|
||||
$this->signed_at = $signed_at;
|
||||
}
|
||||
|
||||
/**
|
||||
* 签约时间
|
||||
* @return string
|
||||
*/
|
||||
public function getSignedAt()
|
||||
{
|
||||
return $this->signed_at;
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户签约状态
|
||||
* @var string $status
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户签约状态
|
||||
* @return string
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 银行卡四要素确认请求(上传短信验证码)请求
|
||||
* Class BankCardFourAuthConfirmRequest
|
||||
*/
|
||||
class BankCardFourAuthConfirmRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 银行卡号
|
||||
* @var string
|
||||
*/
|
||||
public $card_no;
|
||||
/**
|
||||
* 身份证号码
|
||||
* @var string
|
||||
*/
|
||||
public $id_card;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
public $real_name;
|
||||
/**
|
||||
* 银行预留手机号
|
||||
* @var string
|
||||
*/
|
||||
public $mobile;
|
||||
/**
|
||||
* 短信验证码
|
||||
* @var string
|
||||
*/
|
||||
public $captcha;
|
||||
/**
|
||||
* 交易凭证
|
||||
* @var string
|
||||
*/
|
||||
public $ref;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseResponse;
|
||||
use Yzh\Model\ResponseInterface;
|
||||
|
||||
/**
|
||||
* 银行卡四要素确认请求(上传短信验证码)返回
|
||||
* Class BankCardFourAuthConfirmResponse
|
||||
*/
|
||||
class BankCardFourAuthConfirmResponse extends BaseResponse implements ResponseInterface
|
||||
{
|
||||
/**
|
||||
* 获取数据对象
|
||||
* @return BankCardFourAuthConfirmResponseData
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置数据对象
|
||||
* @param array $data
|
||||
* @return self
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = new BankCardFourAuthConfirmResponseData($data);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
use Yzh\Model\ResponseDataInterface;
|
||||
|
||||
/**
|
||||
* 银行卡四要素确认请求(上传短信验证码)返回
|
||||
* Class BankCardFourAuthConfirmResponseData
|
||||
*/
|
||||
class BankCardFourAuthConfirmResponseData extends BaseModel implements ResponseDataInterface
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 银行卡四要素鉴权请求(下发短信验证码)请求
|
||||
* Class BankCardFourAuthVerifyRequest
|
||||
*/
|
||||
class BankCardFourAuthVerifyRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 银行卡号
|
||||
* @var string
|
||||
*/
|
||||
public $card_no;
|
||||
/**
|
||||
* 身份证号码
|
||||
* @var string
|
||||
*/
|
||||
public $id_card;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
public $real_name;
|
||||
/**
|
||||
* 银行预留手机号
|
||||
* @var string
|
||||
*/
|
||||
public $mobile;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseResponse;
|
||||
use Yzh\Model\ResponseInterface;
|
||||
|
||||
/**
|
||||
* 银行卡四要素鉴权请求(下发短信验证码)返回
|
||||
* Class BankCardFourAuthVerifyResponse
|
||||
*/
|
||||
class BankCardFourAuthVerifyResponse extends BaseResponse implements ResponseInterface
|
||||
{
|
||||
/**
|
||||
* 获取数据对象
|
||||
* @return BankCardFourAuthVerifyResponseData
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置数据对象
|
||||
* @param array $data
|
||||
* @return self
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = new BankCardFourAuthVerifyResponseData($data);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
use Yzh\Model\ResponseDataInterface;
|
||||
|
||||
/**
|
||||
* 银行卡四要素鉴权请求(下发短信验证码)返回
|
||||
* Class BankCardFourAuthVerifyResponseData
|
||||
*/
|
||||
class BankCardFourAuthVerifyResponseData extends BaseModel implements ResponseDataInterface
|
||||
{
|
||||
/**
|
||||
* 交易凭证
|
||||
* @var string
|
||||
*/
|
||||
protected $ref;
|
||||
|
||||
/**
|
||||
* 交易凭证
|
||||
* @var string $ref
|
||||
*/
|
||||
public function setRef($ref)
|
||||
{
|
||||
$this->ref = $ref;
|
||||
}
|
||||
|
||||
/**
|
||||
* 交易凭证
|
||||
* @return string
|
||||
*/
|
||||
public function getRef()
|
||||
{
|
||||
return $this->ref;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 银行卡四要素验证请求
|
||||
* Class BankCardFourVerifyRequest
|
||||
*/
|
||||
class BankCardFourVerifyRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 银行卡号
|
||||
* @var string
|
||||
*/
|
||||
public $card_no;
|
||||
/**
|
||||
* 身份证号码
|
||||
* @var string
|
||||
*/
|
||||
public $id_card;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
public $real_name;
|
||||
/**
|
||||
* 银行预留手机号
|
||||
* @var string
|
||||
*/
|
||||
public $mobile;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseResponse;
|
||||
use Yzh\Model\ResponseInterface;
|
||||
|
||||
/**
|
||||
* 银行卡四要素验证返回
|
||||
* Class BankCardFourVerifyResponse
|
||||
*/
|
||||
class BankCardFourVerifyResponse extends BaseResponse implements ResponseInterface
|
||||
{
|
||||
/**
|
||||
* 获取数据对象
|
||||
* @return BankCardFourVerifyResponseData
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置数据对象
|
||||
* @param array $data
|
||||
* @return self
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = new BankCardFourVerifyResponseData($data);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
use Yzh\Model\ResponseDataInterface;
|
||||
|
||||
/**
|
||||
* 银行卡四要素验证返回
|
||||
* Class BankCardFourVerifyResponseData
|
||||
*/
|
||||
class BankCardFourVerifyResponseData extends BaseModel implements ResponseDataInterface
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 银行卡三要素验证请求
|
||||
* Class BankCardThreeVerifyRequest
|
||||
*/
|
||||
class BankCardThreeVerifyRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 银行卡号
|
||||
* @var string
|
||||
*/
|
||||
public $card_no;
|
||||
/**
|
||||
* 身份证号码
|
||||
* @var string
|
||||
*/
|
||||
public $id_card;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
public $real_name;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseResponse;
|
||||
use Yzh\Model\ResponseInterface;
|
||||
|
||||
/**
|
||||
* 银行卡三要素验证返回
|
||||
* Class BankCardThreeVerifyResponse
|
||||
*/
|
||||
class BankCardThreeVerifyResponse extends BaseResponse implements ResponseInterface
|
||||
{
|
||||
/**
|
||||
* 获取数据对象
|
||||
* @return BankCardThreeVerifyResponseData
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置数据对象
|
||||
* @param array $data
|
||||
* @return self
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = new BankCardThreeVerifyResponseData($data);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
use Yzh\Model\ResponseDataInterface;
|
||||
|
||||
/**
|
||||
* 银行卡三要素验证返回
|
||||
* Class BankCardThreeVerifyResponseData
|
||||
*/
|
||||
class BankCardThreeVerifyResponseData extends BaseModel implements ResponseDataInterface
|
||||
{
|
||||
}
|
||||
32
extend/Yzh/Model/Authentication/GetBankCardInfoRequest.php
Normal file
32
extend/Yzh/Model/Authentication/GetBankCardInfoRequest.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 银行卡信息查询请求
|
||||
* Class GetBankCardInfoRequest
|
||||
*/
|
||||
class GetBankCardInfoRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 银行卡号
|
||||
* @var string
|
||||
*/
|
||||
public $card_no;
|
||||
/**
|
||||
* 银行名称
|
||||
* @var string
|
||||
*/
|
||||
public $bank_name;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
33
extend/Yzh/Model/Authentication/GetBankCardInfoResponse.php
Normal file
33
extend/Yzh/Model/Authentication/GetBankCardInfoResponse.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseResponse;
|
||||
use Yzh\Model\ResponseInterface;
|
||||
|
||||
/**
|
||||
* 银行卡信息查询返回
|
||||
* Class GetBankCardInfoResponse
|
||||
*/
|
||||
class GetBankCardInfoResponse extends BaseResponse implements ResponseInterface
|
||||
{
|
||||
/**
|
||||
* 获取数据对象
|
||||
* @return GetBankCardInfoResponseData
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置数据对象
|
||||
* @param array $data
|
||||
* @return self
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = new GetBankCardInfoResponseData($data);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
106
extend/Yzh/Model/Authentication/GetBankCardInfoResponseData.php
Normal file
106
extend/Yzh/Model/Authentication/GetBankCardInfoResponseData.php
Normal file
@@ -0,0 +1,106 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
use Yzh\Model\ResponseDataInterface;
|
||||
|
||||
/**
|
||||
* 银行卡信息查询返回
|
||||
* Class GetBankCardInfoResponseData
|
||||
*/
|
||||
class GetBankCardInfoResponseData extends BaseModel implements ResponseDataInterface
|
||||
{
|
||||
/**
|
||||
* 银行代码
|
||||
* @var string
|
||||
*/
|
||||
protected $bank_code;
|
||||
/**
|
||||
* 银行名称
|
||||
* @var string
|
||||
*/
|
||||
protected $bank_name;
|
||||
/**
|
||||
* 卡类型
|
||||
* @var string
|
||||
*/
|
||||
protected $card_type;
|
||||
/**
|
||||
* 云账户是否支持向该银行支付
|
||||
* @var bool
|
||||
*/
|
||||
protected $is_support;
|
||||
|
||||
/**
|
||||
* 银行代码
|
||||
* @var string $bank_code
|
||||
*/
|
||||
public function setBankCode($bank_code)
|
||||
{
|
||||
$this->bank_code = $bank_code;
|
||||
}
|
||||
|
||||
/**
|
||||
* 银行代码
|
||||
* @return string
|
||||
*/
|
||||
public function getBankCode()
|
||||
{
|
||||
return $this->bank_code;
|
||||
}
|
||||
|
||||
/**
|
||||
* 银行名称
|
||||
* @var string $bank_name
|
||||
*/
|
||||
public function setBankName($bank_name)
|
||||
{
|
||||
$this->bank_name = $bank_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 银行名称
|
||||
* @return string
|
||||
*/
|
||||
public function getBankName()
|
||||
{
|
||||
return $this->bank_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 卡类型
|
||||
* @var string $card_type
|
||||
*/
|
||||
public function setCardType($card_type)
|
||||
{
|
||||
$this->card_type = $card_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* 卡类型
|
||||
* @return string
|
||||
*/
|
||||
public function getCardType()
|
||||
{
|
||||
return $this->card_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* 云账户是否支持向该银行支付
|
||||
* @var bool $is_support
|
||||
*/
|
||||
public function setIsSupport($is_support)
|
||||
{
|
||||
$this->is_support = $is_support;
|
||||
}
|
||||
|
||||
/**
|
||||
* 云账户是否支持向该银行支付
|
||||
* @return bool
|
||||
*/
|
||||
public function getIsSupport()
|
||||
{
|
||||
return $this->is_support;
|
||||
}
|
||||
}
|
||||
32
extend/Yzh/Model/Authentication/IDCardVerifyRequest.php
Normal file
32
extend/Yzh/Model/Authentication/IDCardVerifyRequest.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 身份证实名验证请求
|
||||
* Class IDCardVerifyRequest
|
||||
*/
|
||||
class IDCardVerifyRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 身份证号码
|
||||
* @var string
|
||||
*/
|
||||
public $id_card;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
public $real_name;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
33
extend/Yzh/Model/Authentication/IDCardVerifyResponse.php
Normal file
33
extend/Yzh/Model/Authentication/IDCardVerifyResponse.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseResponse;
|
||||
use Yzh\Model\ResponseInterface;
|
||||
|
||||
/**
|
||||
* 身份证实名验证返回
|
||||
* Class IDCardVerifyResponse
|
||||
*/
|
||||
class IDCardVerifyResponse extends BaseResponse implements ResponseInterface
|
||||
{
|
||||
/**
|
||||
* 获取数据对象
|
||||
* @return IDCardVerifyResponseData
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置数据对象
|
||||
* @param array $data
|
||||
* @return self
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = new IDCardVerifyResponseData($data);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
14
extend/Yzh/Model/Authentication/IDCardVerifyResponseData.php
Normal file
14
extend/Yzh/Model/Authentication/IDCardVerifyResponseData.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
use Yzh\Model\ResponseDataInterface;
|
||||
|
||||
/**
|
||||
* 身份证实名验证返回
|
||||
* Class IDCardVerifyResponseData
|
||||
*/
|
||||
class IDCardVerifyResponseData extends BaseModel implements ResponseDataInterface
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 非居民身份证验证名单审核结果回调通知
|
||||
* Class NotifyUserExemptedInfoRequest
|
||||
*/
|
||||
class NotifyUserExemptedInfoRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string
|
||||
*/
|
||||
public $broker_id;
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_id;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
public $real_name;
|
||||
/**
|
||||
* 证件号
|
||||
* @var string
|
||||
*/
|
||||
public $id_card;
|
||||
/**
|
||||
* 审核状态
|
||||
* @var string
|
||||
*/
|
||||
public $status;
|
||||
/**
|
||||
* 流水号
|
||||
* @var string
|
||||
*/
|
||||
public $ref;
|
||||
/**
|
||||
* 审核信息
|
||||
* @var string
|
||||
*/
|
||||
public $comment;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
82
extend/Yzh/Model/Authentication/UserExemptedInfoRequest.php
Normal file
82
extend/Yzh/Model/Authentication/UserExemptedInfoRequest.php
Normal file
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 上传非居民身份证验证名单信息请求
|
||||
* Class UserExemptedInfoRequest
|
||||
*/
|
||||
class UserExemptedInfoRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 证件类型码
|
||||
* @var string
|
||||
*/
|
||||
public $card_type;
|
||||
/**
|
||||
* 证件号码
|
||||
* @var string
|
||||
*/
|
||||
public $id_card;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
public $real_name;
|
||||
/**
|
||||
* 申请备注
|
||||
* @var string
|
||||
*/
|
||||
public $comment_apply;
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string
|
||||
*/
|
||||
public $broker_id;
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_id;
|
||||
/**
|
||||
* 人员信息图片
|
||||
* @var string[]
|
||||
*/
|
||||
public $user_images;
|
||||
/**
|
||||
* 国别(地区)代码
|
||||
* @var string
|
||||
*/
|
||||
public $country;
|
||||
/**
|
||||
* 出生日期
|
||||
* @var string
|
||||
*/
|
||||
public $birthday;
|
||||
/**
|
||||
* 性别
|
||||
* @var string
|
||||
*/
|
||||
public $gender;
|
||||
/**
|
||||
* 回调地址
|
||||
* @var string
|
||||
*/
|
||||
public $notify_url;
|
||||
/**
|
||||
* 请求流水号
|
||||
* @var string
|
||||
*/
|
||||
public $ref;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
33
extend/Yzh/Model/Authentication/UserExemptedInfoResponse.php
Normal file
33
extend/Yzh/Model/Authentication/UserExemptedInfoResponse.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseResponse;
|
||||
use Yzh\Model\ResponseInterface;
|
||||
|
||||
/**
|
||||
* 上传非居民身份证验证名单信息返回
|
||||
* Class UserExemptedInfoResponse
|
||||
*/
|
||||
class UserExemptedInfoResponse extends BaseResponse implements ResponseInterface
|
||||
{
|
||||
/**
|
||||
* 获取数据对象
|
||||
* @return UserExemptedInfoResponseData
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置数据对象
|
||||
* @param array $data
|
||||
* @return self
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = new UserExemptedInfoResponseData($data);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
use Yzh\Model\ResponseDataInterface;
|
||||
|
||||
/**
|
||||
* 上传非居民身份证验证名单信息返回
|
||||
* Class UserExemptedInfoResponseData
|
||||
*/
|
||||
class UserExemptedInfoResponseData extends BaseModel implements ResponseDataInterface
|
||||
{
|
||||
/**
|
||||
* 是否上传成功
|
||||
* @var string
|
||||
*/
|
||||
protected $ok;
|
||||
|
||||
/**
|
||||
* 是否上传成功
|
||||
* @var string $ok
|
||||
*/
|
||||
public function setOk($ok)
|
||||
{
|
||||
$this->ok = $ok;
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否上传成功
|
||||
* @return string
|
||||
*/
|
||||
public function getOk()
|
||||
{
|
||||
return $this->ok;
|
||||
}
|
||||
}
|
||||
32
extend/Yzh/Model/Authentication/UserWhiteCheckRequest.php
Normal file
32
extend/Yzh/Model/Authentication/UserWhiteCheckRequest.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 查看用户是否在非居民身份证验证名单中请求
|
||||
* Class UserWhiteCheckRequest
|
||||
*/
|
||||
class UserWhiteCheckRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 证件号码
|
||||
* @var string
|
||||
*/
|
||||
public $id_card;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
public $real_name;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
33
extend/Yzh/Model/Authentication/UserWhiteCheckResponse.php
Normal file
33
extend/Yzh/Model/Authentication/UserWhiteCheckResponse.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseResponse;
|
||||
use Yzh\Model\ResponseInterface;
|
||||
|
||||
/**
|
||||
* 查看用户是否在非居民身份证验证名单中返回
|
||||
* Class UserWhiteCheckResponse
|
||||
*/
|
||||
class UserWhiteCheckResponse extends BaseResponse implements ResponseInterface
|
||||
{
|
||||
/**
|
||||
* 获取数据对象
|
||||
* @return UserWhiteCheckResponseData
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置数据对象
|
||||
* @param array $data
|
||||
* @return self
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = new UserWhiteCheckResponseData($data);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Authentication;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
use Yzh\Model\ResponseDataInterface;
|
||||
|
||||
/**
|
||||
* 查看用户是否在非居民身份证验证名单中返回
|
||||
* Class UserWhiteCheckResponseData
|
||||
*/
|
||||
class UserWhiteCheckResponseData extends BaseModel implements ResponseDataInterface
|
||||
{
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
protected $ok;
|
||||
|
||||
/**
|
||||
* @var bool $ok
|
||||
*/
|
||||
public function setOk($ok)
|
||||
{
|
||||
$this->ok = $ok;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function getOk()
|
||||
{
|
||||
return $this->ok;
|
||||
}
|
||||
}
|
||||
30
extend/Yzh/Model/BaseModel.php
Normal file
30
extend/Yzh/Model/BaseModel.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model;
|
||||
|
||||
abstract class BaseModel
|
||||
{
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$setMethodName = "set" . $this->camelCase($property);
|
||||
if (method_exists($this, $setMethodName)) {
|
||||
call_user_func(array($this, $setMethodName), $params[$property]);
|
||||
} else {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected function camelCase($string, $dontStrip = [])
|
||||
{
|
||||
/*
|
||||
* This will take any dash or underscore turn it into a space, run ucwords against
|
||||
* it so it capitalizes the first letter in all words separated by a space then it
|
||||
* turns and deletes all spaces.
|
||||
*/
|
||||
return lcfirst(str_replace(' ', '', ucwords(preg_replace('/[^a-z0-9' . implode('', $dontStrip) . ']+/', ' ', $string))));
|
||||
}
|
||||
}
|
||||
40
extend/Yzh/Model/BaseRequest.php
Normal file
40
extend/Yzh/Model/BaseRequest.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model;
|
||||
|
||||
use Yzh\Utils\MessString;
|
||||
|
||||
abstract class BaseRequest
|
||||
{
|
||||
protected $_requestID;
|
||||
|
||||
public function getRequestID()
|
||||
{
|
||||
if (isset($this->_requestID) && !empty($this->_requestID)) {
|
||||
return $this->_requestID;
|
||||
}
|
||||
return MessString::rand(32);
|
||||
}
|
||||
|
||||
/**
|
||||
* 自定义请求 ID
|
||||
* @param string $requestID 请求 ID
|
||||
*/
|
||||
public function setRequestID($requestID)
|
||||
{
|
||||
$this->_requestID = $requestID;
|
||||
}
|
||||
|
||||
public function getRequestData()
|
||||
{
|
||||
$requestData = array();
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if ($property == '_requestID') {
|
||||
continue;
|
||||
}
|
||||
|
||||
$requestData[$property] = $this->{$property};
|
||||
}
|
||||
return $requestData;
|
||||
}
|
||||
}
|
||||
113
extend/Yzh/Model/BaseResponse.php
Normal file
113
extend/Yzh/Model/BaseResponse.php
Normal file
@@ -0,0 +1,113 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model;
|
||||
|
||||
use Yzh\Exception\RuntimeException;
|
||||
|
||||
abstract class BaseResponse
|
||||
{
|
||||
const CODE_SUCC = '0000';
|
||||
|
||||
/**
|
||||
* 业务状态码
|
||||
*/
|
||||
protected $code = "";
|
||||
/**
|
||||
* 业务状态描述信息
|
||||
*/
|
||||
protected $message = "";
|
||||
/**
|
||||
* 请求 ID
|
||||
*/
|
||||
protected $requestID = "";
|
||||
/**
|
||||
* 业务数据
|
||||
*/
|
||||
protected $data = [];
|
||||
/**
|
||||
* @var array
|
||||
* 原始数据
|
||||
*/
|
||||
protected $arr_data = [];
|
||||
|
||||
/**
|
||||
* 获取业务状态码
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置业务状态码
|
||||
* @return self
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->code = $code;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否成功
|
||||
* @return bool
|
||||
*/
|
||||
public function isSuccess()
|
||||
{
|
||||
return $this->code === self::CODE_SUCC;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取业务状态码描述信息
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置业务状态码描述信息
|
||||
* @return self
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->message = $message;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取请求 ID
|
||||
*/
|
||||
public function getRequestID()
|
||||
{
|
||||
return $this->requestID;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置请求 ID
|
||||
* @return self
|
||||
*/
|
||||
public function setRequestID($requestID)
|
||||
{
|
||||
$this->requestID = $requestID;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取数据对象
|
||||
* @return self
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置数据对象
|
||||
* @param array $data
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
throw new RunTimeException("子类必须自行实现 setData 方法");
|
||||
}
|
||||
}
|
||||
52
extend/Yzh/Model/Bizlicgxv2h5/GxV2H5GetAicStatusRequest.php
Normal file
52
extend/Yzh/Model/Bizlicgxv2h5/GxV2H5GetAicStatusRequest.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicgxv2h5;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 查询个体工商户状态请求
|
||||
* Class GxV2H5GetAicStatusRequest
|
||||
*/
|
||||
class GxV2H5GetAicStatusRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_id;
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string
|
||||
*/
|
||||
public $broker_id;
|
||||
/**
|
||||
* 用户唯一标识
|
||||
* @var string
|
||||
*/
|
||||
public $open_id;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
public $real_name;
|
||||
/**
|
||||
* 身份证号码
|
||||
* @var string
|
||||
*/
|
||||
public $id_card;
|
||||
/**
|
||||
* 平台企业端的用户 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_user_id;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
33
extend/Yzh/Model/Bizlicgxv2h5/GxV2H5GetAicStatusResponse.php
Normal file
33
extend/Yzh/Model/Bizlicgxv2h5/GxV2H5GetAicStatusResponse.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicgxv2h5;
|
||||
|
||||
use Yzh\Model\BaseResponse;
|
||||
use Yzh\Model\ResponseInterface;
|
||||
|
||||
/**
|
||||
* 查询个体工商户状态返回
|
||||
* Class GxV2H5GetAicStatusResponse
|
||||
*/
|
||||
class GxV2H5GetAicStatusResponse extends BaseResponse implements ResponseInterface
|
||||
{
|
||||
/**
|
||||
* 获取数据对象
|
||||
* @return GxV2H5GetAicStatusResponseData
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置数据对象
|
||||
* @param array $data
|
||||
* @return self
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = new GxV2H5GetAicStatusResponseData($data);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
221
extend/Yzh/Model/Bizlicgxv2h5/GxV2H5GetAicStatusResponseData.php
Normal file
221
extend/Yzh/Model/Bizlicgxv2h5/GxV2H5GetAicStatusResponseData.php
Normal file
@@ -0,0 +1,221 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicgxv2h5;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
use Yzh\Model\ResponseDataInterface;
|
||||
|
||||
/**
|
||||
* 查询个体工商户状态返回
|
||||
* Class GxV2H5GetAicStatusResponseData
|
||||
*/
|
||||
class GxV2H5GetAicStatusResponseData extends BaseModel implements ResponseDataInterface
|
||||
{
|
||||
/**
|
||||
* 用户注册状态
|
||||
* @var int32
|
||||
*/
|
||||
protected $status;
|
||||
/**
|
||||
* 注册状态描述
|
||||
* @var string
|
||||
*/
|
||||
protected $status_message;
|
||||
/**
|
||||
* 注册详情状态码
|
||||
* @var int32
|
||||
*/
|
||||
protected $status_detail;
|
||||
/**
|
||||
* 注册详情状态码描述
|
||||
* @var string
|
||||
*/
|
||||
protected $status_detail_message;
|
||||
/**
|
||||
* 注册发起时间
|
||||
* @var string
|
||||
*/
|
||||
protected $applyed_at;
|
||||
/**
|
||||
* 注册完成时间
|
||||
* @var string
|
||||
*/
|
||||
protected $registed_at;
|
||||
/**
|
||||
* 统一社会信用代码
|
||||
* @var string
|
||||
*/
|
||||
protected $uscc;
|
||||
/**
|
||||
* 身份证号码
|
||||
* @var string
|
||||
*/
|
||||
protected $id_card;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
protected $real_name;
|
||||
|
||||
/**
|
||||
* 用户注册状态
|
||||
* @var int32 $status
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户注册状态
|
||||
* @return int32
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册状态描述
|
||||
* @var string $status_message
|
||||
*/
|
||||
public function setStatusMessage($status_message)
|
||||
{
|
||||
$this->status_message = $status_message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册状态描述
|
||||
* @return string
|
||||
*/
|
||||
public function getStatusMessage()
|
||||
{
|
||||
return $this->status_message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册详情状态码
|
||||
* @var int32 $status_detail
|
||||
*/
|
||||
public function setStatusDetail($status_detail)
|
||||
{
|
||||
$this->status_detail = $status_detail;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册详情状态码
|
||||
* @return int32
|
||||
*/
|
||||
public function getStatusDetail()
|
||||
{
|
||||
return $this->status_detail;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册详情状态码描述
|
||||
* @var string $status_detail_message
|
||||
*/
|
||||
public function setStatusDetailMessage($status_detail_message)
|
||||
{
|
||||
$this->status_detail_message = $status_detail_message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册详情状态码描述
|
||||
* @return string
|
||||
*/
|
||||
public function getStatusDetailMessage()
|
||||
{
|
||||
return $this->status_detail_message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册发起时间
|
||||
* @var string $applyed_at
|
||||
*/
|
||||
public function setApplyedAt($applyed_at)
|
||||
{
|
||||
$this->applyed_at = $applyed_at;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册发起时间
|
||||
* @return string
|
||||
*/
|
||||
public function getApplyedAt()
|
||||
{
|
||||
return $this->applyed_at;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册完成时间
|
||||
* @var string $registed_at
|
||||
*/
|
||||
public function setRegistedAt($registed_at)
|
||||
{
|
||||
$this->registed_at = $registed_at;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册完成时间
|
||||
* @return string
|
||||
*/
|
||||
public function getRegistedAt()
|
||||
{
|
||||
return $this->registed_at;
|
||||
}
|
||||
|
||||
/**
|
||||
* 统一社会信用代码
|
||||
* @var string $uscc
|
||||
*/
|
||||
public function setUscc($uscc)
|
||||
{
|
||||
$this->uscc = $uscc;
|
||||
}
|
||||
|
||||
/**
|
||||
* 统一社会信用代码
|
||||
* @return string
|
||||
*/
|
||||
public function getUscc()
|
||||
{
|
||||
return $this->uscc;
|
||||
}
|
||||
|
||||
/**
|
||||
* 身份证号码
|
||||
* @var string $id_card
|
||||
*/
|
||||
public function setIdCard($id_card)
|
||||
{
|
||||
$this->id_card = $id_card;
|
||||
}
|
||||
|
||||
/**
|
||||
* 身份证号码
|
||||
* @return string
|
||||
*/
|
||||
public function getIdCard()
|
||||
{
|
||||
return $this->id_card;
|
||||
}
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
* @var string $real_name
|
||||
*/
|
||||
public function setRealName($real_name)
|
||||
{
|
||||
$this->real_name = $real_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
* @return string
|
||||
*/
|
||||
public function getRealName()
|
||||
{
|
||||
return $this->real_name;
|
||||
}
|
||||
}
|
||||
62
extend/Yzh/Model/Bizlicgxv2h5/GxV2H5GetStartUrlRequest.php
Normal file
62
extend/Yzh/Model/Bizlicgxv2h5/GxV2H5GetStartUrlRequest.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicgxv2h5;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 预启动请求
|
||||
* Class GxV2H5GetStartUrlRequest
|
||||
*/
|
||||
class GxV2H5GetStartUrlRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_id;
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string
|
||||
*/
|
||||
public $broker_id;
|
||||
/**
|
||||
* 平台企业端的用户 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_user_id;
|
||||
/**
|
||||
* 客户端类型
|
||||
* @var int32
|
||||
*/
|
||||
public $client_type;
|
||||
/**
|
||||
* 异步通知 URL
|
||||
* @var string
|
||||
*/
|
||||
public $notify_url;
|
||||
/**
|
||||
* H5 页面主题颜色
|
||||
* @var string
|
||||
*/
|
||||
public $color;
|
||||
/**
|
||||
* 跳转 URL
|
||||
* @var string
|
||||
*/
|
||||
public $return_url;
|
||||
/**
|
||||
* H5 页面 Title
|
||||
* @var int32
|
||||
*/
|
||||
public $customer_title;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
33
extend/Yzh/Model/Bizlicgxv2h5/GxV2H5GetStartUrlResponse.php
Normal file
33
extend/Yzh/Model/Bizlicgxv2h5/GxV2H5GetStartUrlResponse.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicgxv2h5;
|
||||
|
||||
use Yzh\Model\BaseResponse;
|
||||
use Yzh\Model\ResponseInterface;
|
||||
|
||||
/**
|
||||
* 预启动返回
|
||||
* Class GxV2H5GetStartUrlResponse
|
||||
*/
|
||||
class GxV2H5GetStartUrlResponse extends BaseResponse implements ResponseInterface
|
||||
{
|
||||
/**
|
||||
* 获取数据对象
|
||||
* @return GxV2H5GetStartUrlResponseData
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置数据对象
|
||||
* @param array $data
|
||||
* @return self
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = new GxV2H5GetStartUrlResponseData($data);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicgxv2h5;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
use Yzh\Model\ResponseDataInterface;
|
||||
|
||||
/**
|
||||
* 预启动返回
|
||||
* Class GxV2H5GetStartUrlResponseData
|
||||
*/
|
||||
class GxV2H5GetStartUrlResponseData extends BaseModel implements ResponseDataInterface
|
||||
{
|
||||
/**
|
||||
* 跳转 URL
|
||||
* @var string
|
||||
*/
|
||||
protected $h5_url;
|
||||
|
||||
/**
|
||||
* 跳转 URL
|
||||
* @var string $h5_url
|
||||
*/
|
||||
public function setH5Url($h5_url)
|
||||
{
|
||||
$this->h5_url = $h5_url;
|
||||
}
|
||||
|
||||
/**
|
||||
* 跳转 URL
|
||||
* @return string
|
||||
*/
|
||||
public function getH5Url()
|
||||
{
|
||||
return $this->h5_url;
|
||||
}
|
||||
}
|
||||
92
extend/Yzh/Model/Bizlicgxv2h5/NotifyGxV2H5AicRequest.php
Normal file
92
extend/Yzh/Model/Bizlicgxv2h5/NotifyGxV2H5AicRequest.php
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicgxv2h5;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 个体工商户注册/注销结果回调通知
|
||||
* Class NotifyGxV2H5AicRequest
|
||||
*/
|
||||
class NotifyGxV2H5AicRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 用户唯一标识
|
||||
* @var string
|
||||
*/
|
||||
public $open_id;
|
||||
/**
|
||||
* 平台企业端的用户 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_user_id;
|
||||
/**
|
||||
* 注册/注销提交时间
|
||||
* @var string
|
||||
*/
|
||||
public $submit_at;
|
||||
/**
|
||||
* 注册/注销完成时间
|
||||
* @var string
|
||||
*/
|
||||
public $registed_at;
|
||||
/**
|
||||
* 用户注册/注销状态
|
||||
* @var int32
|
||||
*/
|
||||
public $status;
|
||||
/**
|
||||
* 注册/注销状态描述
|
||||
* @var string
|
||||
*/
|
||||
public $status_message;
|
||||
/**
|
||||
* 注册/注销详情状态码
|
||||
* @var int32
|
||||
*/
|
||||
public $status_detail;
|
||||
/**
|
||||
* 注册/注销详情状态码描述
|
||||
* @var string
|
||||
*/
|
||||
public $status_detail_message;
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_id;
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string
|
||||
*/
|
||||
public $broker_id;
|
||||
/**
|
||||
* 统一社会信用代码
|
||||
* @var string
|
||||
*/
|
||||
public $uscc;
|
||||
/**
|
||||
* 身份证号码
|
||||
* @var string
|
||||
*/
|
||||
public $id_card;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
public $real_name;
|
||||
/**
|
||||
* 回调类型
|
||||
* @var int32
|
||||
*/
|
||||
public $type;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicgxv2h5api;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 查询个体工商户状态请求
|
||||
* Class GxV2H5APIGetAicStatusRequest
|
||||
*/
|
||||
class GxV2H5APIGetAicStatusRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_id;
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string
|
||||
*/
|
||||
public $broker_id;
|
||||
/**
|
||||
* 用户唯一标识
|
||||
* @var string
|
||||
*/
|
||||
public $open_id;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
public $real_name;
|
||||
/**
|
||||
* 身份证号码
|
||||
* @var string
|
||||
*/
|
||||
public $id_card;
|
||||
/**
|
||||
* 平台企业端的用户 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_user_id;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicgxv2h5api;
|
||||
|
||||
use Yzh\Model\BaseResponse;
|
||||
use Yzh\Model\ResponseInterface;
|
||||
|
||||
/**
|
||||
* 查询个体工商户状态返回
|
||||
* Class GxV2H5APIGetAicStatusResponse
|
||||
*/
|
||||
class GxV2H5APIGetAicStatusResponse extends BaseResponse implements ResponseInterface
|
||||
{
|
||||
/**
|
||||
* 获取数据对象
|
||||
* @return GxV2H5APIGetAicStatusResponseData
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置数据对象
|
||||
* @param array $data
|
||||
* @return self
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = new GxV2H5APIGetAicStatusResponseData($data);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,221 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicgxv2h5api;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
use Yzh\Model\ResponseDataInterface;
|
||||
|
||||
/**
|
||||
* 查询个体工商户状态返回
|
||||
* Class GxV2H5APIGetAicStatusResponseData
|
||||
*/
|
||||
class GxV2H5APIGetAicStatusResponseData extends BaseModel implements ResponseDataInterface
|
||||
{
|
||||
/**
|
||||
* 用户注册状态
|
||||
* @var int32
|
||||
*/
|
||||
protected $status;
|
||||
/**
|
||||
* 注册状态描述
|
||||
* @var string
|
||||
*/
|
||||
protected $status_message;
|
||||
/**
|
||||
* 注册详情状态码
|
||||
* @var int32
|
||||
*/
|
||||
protected $status_detail;
|
||||
/**
|
||||
* 注册详情状态码描述
|
||||
* @var string
|
||||
*/
|
||||
protected $status_detail_message;
|
||||
/**
|
||||
* 注册发起时间
|
||||
* @var string
|
||||
*/
|
||||
protected $applyed_at;
|
||||
/**
|
||||
* 注册完成时间
|
||||
* @var string
|
||||
*/
|
||||
protected $registed_at;
|
||||
/**
|
||||
* 统一社会信用代码
|
||||
* @var string
|
||||
*/
|
||||
protected $uscc;
|
||||
/**
|
||||
* 身份证号码
|
||||
* @var string
|
||||
*/
|
||||
protected $id_card;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
protected $real_name;
|
||||
|
||||
/**
|
||||
* 用户注册状态
|
||||
* @var int32 $status
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户注册状态
|
||||
* @return int32
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册状态描述
|
||||
* @var string $status_message
|
||||
*/
|
||||
public function setStatusMessage($status_message)
|
||||
{
|
||||
$this->status_message = $status_message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册状态描述
|
||||
* @return string
|
||||
*/
|
||||
public function getStatusMessage()
|
||||
{
|
||||
return $this->status_message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册详情状态码
|
||||
* @var int32 $status_detail
|
||||
*/
|
||||
public function setStatusDetail($status_detail)
|
||||
{
|
||||
$this->status_detail = $status_detail;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册详情状态码
|
||||
* @return int32
|
||||
*/
|
||||
public function getStatusDetail()
|
||||
{
|
||||
return $this->status_detail;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册详情状态码描述
|
||||
* @var string $status_detail_message
|
||||
*/
|
||||
public function setStatusDetailMessage($status_detail_message)
|
||||
{
|
||||
$this->status_detail_message = $status_detail_message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册详情状态码描述
|
||||
* @return string
|
||||
*/
|
||||
public function getStatusDetailMessage()
|
||||
{
|
||||
return $this->status_detail_message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册发起时间
|
||||
* @var string $applyed_at
|
||||
*/
|
||||
public function setApplyedAt($applyed_at)
|
||||
{
|
||||
$this->applyed_at = $applyed_at;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册发起时间
|
||||
* @return string
|
||||
*/
|
||||
public function getApplyedAt()
|
||||
{
|
||||
return $this->applyed_at;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册完成时间
|
||||
* @var string $registed_at
|
||||
*/
|
||||
public function setRegistedAt($registed_at)
|
||||
{
|
||||
$this->registed_at = $registed_at;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册完成时间
|
||||
* @return string
|
||||
*/
|
||||
public function getRegistedAt()
|
||||
{
|
||||
return $this->registed_at;
|
||||
}
|
||||
|
||||
/**
|
||||
* 统一社会信用代码
|
||||
* @var string $uscc
|
||||
*/
|
||||
public function setUscc($uscc)
|
||||
{
|
||||
$this->uscc = $uscc;
|
||||
}
|
||||
|
||||
/**
|
||||
* 统一社会信用代码
|
||||
* @return string
|
||||
*/
|
||||
public function getUscc()
|
||||
{
|
||||
return $this->uscc;
|
||||
}
|
||||
|
||||
/**
|
||||
* 身份证号码
|
||||
* @var string $id_card
|
||||
*/
|
||||
public function setIdCard($id_card)
|
||||
{
|
||||
$this->id_card = $id_card;
|
||||
}
|
||||
|
||||
/**
|
||||
* 身份证号码
|
||||
* @return string
|
||||
*/
|
||||
public function getIdCard()
|
||||
{
|
||||
return $this->id_card;
|
||||
}
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
* @var string $real_name
|
||||
*/
|
||||
public function setRealName($real_name)
|
||||
{
|
||||
$this->real_name = $real_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
* @return string
|
||||
*/
|
||||
public function getRealName()
|
||||
{
|
||||
return $this->real_name;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicgxv2h5api;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 预启动请求
|
||||
* Class GxV2H5APIGetStartUrlRequest
|
||||
*/
|
||||
class GxV2H5APIGetStartUrlRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_id;
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string
|
||||
*/
|
||||
public $broker_id;
|
||||
/**
|
||||
* 平台企业端的用户 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_user_id;
|
||||
/**
|
||||
* 客户端类型
|
||||
* @var int32
|
||||
*/
|
||||
public $client_type;
|
||||
/**
|
||||
* 异步通知 URL
|
||||
* @var string
|
||||
*/
|
||||
public $notify_url;
|
||||
/**
|
||||
* H5 页面主题颜色
|
||||
* @var string
|
||||
*/
|
||||
public $color;
|
||||
/**
|
||||
* 跳转 URL
|
||||
* @var string
|
||||
*/
|
||||
public $return_url;
|
||||
/**
|
||||
* H5 页面 Title
|
||||
* @var int32
|
||||
*/
|
||||
public $customer_title;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicgxv2h5api;
|
||||
|
||||
use Yzh\Model\BaseResponse;
|
||||
use Yzh\Model\ResponseInterface;
|
||||
|
||||
/**
|
||||
* 预启动返回
|
||||
* Class GxV2H5APIGetStartUrlResponse
|
||||
*/
|
||||
class GxV2H5APIGetStartUrlResponse extends BaseResponse implements ResponseInterface
|
||||
{
|
||||
/**
|
||||
* 获取数据对象
|
||||
* @return GxV2H5APIGetStartUrlResponseData
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置数据对象
|
||||
* @param array $data
|
||||
* @return self
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = new GxV2H5APIGetStartUrlResponseData($data);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicgxv2h5api;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
use Yzh\Model\ResponseDataInterface;
|
||||
|
||||
/**
|
||||
* 预启动返回
|
||||
* Class GxV2H5APIGetStartUrlResponseData
|
||||
*/
|
||||
class GxV2H5APIGetStartUrlResponseData extends BaseModel implements ResponseDataInterface
|
||||
{
|
||||
/**
|
||||
* 跳转 URL
|
||||
* @var string
|
||||
*/
|
||||
protected $h5_url;
|
||||
|
||||
/**
|
||||
* 跳转 URL
|
||||
* @var string $h5_url
|
||||
*/
|
||||
public function setH5Url($h5_url)
|
||||
{
|
||||
$this->h5_url = $h5_url;
|
||||
}
|
||||
|
||||
/**
|
||||
* 跳转 URL
|
||||
* @return string
|
||||
*/
|
||||
public function getH5Url()
|
||||
{
|
||||
return $this->h5_url;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicgxv2h5api;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 工商实名信息录入请求
|
||||
* Class GxV2H5APIPreCollectBizlicMsgRequest
|
||||
*/
|
||||
class GxV2H5APIPreCollectBizlicMsgRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_id;
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string
|
||||
*/
|
||||
public $broker_id;
|
||||
/**
|
||||
* 平台企业端的用户 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_user_id;
|
||||
/**
|
||||
* 手机号
|
||||
* @var string
|
||||
*/
|
||||
public $phone_no;
|
||||
/**
|
||||
* 身份证号码
|
||||
* @var string
|
||||
*/
|
||||
public $id_card;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
public $real_name;
|
||||
/**
|
||||
* 身份证住址
|
||||
* @var string
|
||||
*/
|
||||
public $id_card_address;
|
||||
/**
|
||||
* 身份证签发机关
|
||||
* @var string
|
||||
*/
|
||||
public $id_card_agency;
|
||||
/**
|
||||
* 身份证民族
|
||||
* @var string
|
||||
*/
|
||||
public $id_card_nation;
|
||||
/**
|
||||
* 身份证有效期开始时间
|
||||
* @var string
|
||||
*/
|
||||
public $id_card_validity_start;
|
||||
/**
|
||||
* 身份证有效期结束时间
|
||||
* @var string
|
||||
*/
|
||||
public $id_card_validity_end;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicgxv2h5api;
|
||||
|
||||
use Yzh\Model\BaseResponse;
|
||||
use Yzh\Model\ResponseInterface;
|
||||
|
||||
/**
|
||||
* 工商实名信息录入返回
|
||||
* Class GxV2H5APIPreCollectBizlicMsgResponse
|
||||
*/
|
||||
class GxV2H5APIPreCollectBizlicMsgResponse extends BaseResponse implements ResponseInterface
|
||||
{
|
||||
/**
|
||||
* 获取数据对象
|
||||
* @return GxV2H5APIPreCollectBizlicMsgResponseData
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置数据对象
|
||||
* @param array $data
|
||||
* @return self
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = new GxV2H5APIPreCollectBizlicMsgResponseData($data);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicgxv2h5api;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
use Yzh\Model\ResponseDataInterface;
|
||||
|
||||
/**
|
||||
* 工商实名信息录入返回
|
||||
* Class GxV2H5APIPreCollectBizlicMsgResponseData
|
||||
*/
|
||||
class GxV2H5APIPreCollectBizlicMsgResponseData extends BaseModel implements ResponseDataInterface
|
||||
{
|
||||
/**
|
||||
* 平台企业端的用户 ID
|
||||
* @var string
|
||||
*/
|
||||
protected $dealer_user_id;
|
||||
|
||||
/**
|
||||
* 平台企业端的用户 ID
|
||||
* @var string $dealer_user_id
|
||||
*/
|
||||
public function setDealerUserId($dealer_user_id)
|
||||
{
|
||||
$this->dealer_user_id = $dealer_user_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 平台企业端的用户 ID
|
||||
* @return string
|
||||
*/
|
||||
public function getDealerUserId()
|
||||
{
|
||||
return $this->dealer_user_id;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicgxv2h5api;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 个体工商户注册/注销结果回调通知
|
||||
* Class NotifyGxV2H5APIAicRequest
|
||||
*/
|
||||
class NotifyGxV2H5APIAicRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 用户唯一标识
|
||||
* @var string
|
||||
*/
|
||||
public $open_id;
|
||||
/**
|
||||
* 平台企业端的用户 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_user_id;
|
||||
/**
|
||||
* 注册/注销提交时间
|
||||
* @var string
|
||||
*/
|
||||
public $submit_at;
|
||||
/**
|
||||
* 注册/注销完成时间
|
||||
* @var string
|
||||
*/
|
||||
public $registed_at;
|
||||
/**
|
||||
* 用户注册/注销状态
|
||||
* @var int32
|
||||
*/
|
||||
public $status;
|
||||
/**
|
||||
* 注册/注销状态描述
|
||||
* @var string
|
||||
*/
|
||||
public $status_message;
|
||||
/**
|
||||
* 注册/注销详情状态码
|
||||
* @var int32
|
||||
*/
|
||||
public $status_detail;
|
||||
/**
|
||||
* 注册/注销详情状态码描述
|
||||
* @var string
|
||||
*/
|
||||
public $status_detail_message;
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_id;
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string
|
||||
*/
|
||||
public $broker_id;
|
||||
/**
|
||||
* 统一社会信用代码
|
||||
* @var string
|
||||
*/
|
||||
public $uscc;
|
||||
/**
|
||||
* 身份证号码
|
||||
* @var string
|
||||
*/
|
||||
public $id_card;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
public $real_name;
|
||||
/**
|
||||
* 回调类型
|
||||
* @var int32
|
||||
*/
|
||||
public $type;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
52
extend/Yzh/Model/Bizlicxjjh5/H5EcoCityAicStatusRequest.php
Normal file
52
extend/Yzh/Model/Bizlicxjjh5/H5EcoCityAicStatusRequest.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicxjjh5;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 查询个体工商户状态请求
|
||||
* Class H5EcoCityAicStatusRequest
|
||||
*/
|
||||
class H5EcoCityAicStatusRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_id;
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string
|
||||
*/
|
||||
public $broker_id;
|
||||
/**
|
||||
* 平台企业端的用户 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_user_id;
|
||||
/**
|
||||
* 身份证号码
|
||||
* @var string
|
||||
*/
|
||||
public $id_card;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
public $real_name;
|
||||
/**
|
||||
* 用户唯一标识
|
||||
* @var string
|
||||
*/
|
||||
public $open_id;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
33
extend/Yzh/Model/Bizlicxjjh5/H5EcoCityAicStatusResponse.php
Normal file
33
extend/Yzh/Model/Bizlicxjjh5/H5EcoCityAicStatusResponse.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicxjjh5;
|
||||
|
||||
use Yzh\Model\BaseResponse;
|
||||
use Yzh\Model\ResponseInterface;
|
||||
|
||||
/**
|
||||
* 查询个体工商户状态返回
|
||||
* Class H5EcoCityAicStatusResponse
|
||||
*/
|
||||
class H5EcoCityAicStatusResponse extends BaseResponse implements ResponseInterface
|
||||
{
|
||||
/**
|
||||
* 获取数据对象
|
||||
* @return H5EcoCityAicStatusResponseData
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置数据对象
|
||||
* @param array $data
|
||||
* @return self
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = new H5EcoCityAicStatusResponseData($data);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
221
extend/Yzh/Model/Bizlicxjjh5/H5EcoCityAicStatusResponseData.php
Normal file
221
extend/Yzh/Model/Bizlicxjjh5/H5EcoCityAicStatusResponseData.php
Normal file
@@ -0,0 +1,221 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicxjjh5;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
use Yzh\Model\ResponseDataInterface;
|
||||
|
||||
/**
|
||||
* 查询个体工商户状态返回
|
||||
* Class H5EcoCityAicStatusResponseData
|
||||
*/
|
||||
class H5EcoCityAicStatusResponseData extends BaseModel implements ResponseDataInterface
|
||||
{
|
||||
/**
|
||||
* 用户签约状态
|
||||
* @var int32
|
||||
*/
|
||||
protected $status;
|
||||
/**
|
||||
* 注册状态描述
|
||||
* @var string
|
||||
*/
|
||||
protected $status_message;
|
||||
/**
|
||||
* 注册详情状态码
|
||||
* @var int32
|
||||
*/
|
||||
protected $status_detail;
|
||||
/**
|
||||
* 注册详情状态码描述
|
||||
* @var string
|
||||
*/
|
||||
protected $status_detail_message;
|
||||
/**
|
||||
* 注册发起时间
|
||||
* @var string
|
||||
*/
|
||||
protected $applyed_at;
|
||||
/**
|
||||
* 注册完成时间
|
||||
* @var string
|
||||
*/
|
||||
protected $registed_at;
|
||||
/**
|
||||
* 统一社会信用代码
|
||||
* @var string
|
||||
*/
|
||||
protected $uscc;
|
||||
/**
|
||||
* 身份证号码
|
||||
* @var string
|
||||
*/
|
||||
protected $id_card;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
protected $real_name;
|
||||
|
||||
/**
|
||||
* 用户签约状态
|
||||
* @var int32 $status
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户签约状态
|
||||
* @return int32
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册状态描述
|
||||
* @var string $status_message
|
||||
*/
|
||||
public function setStatusMessage($status_message)
|
||||
{
|
||||
$this->status_message = $status_message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册状态描述
|
||||
* @return string
|
||||
*/
|
||||
public function getStatusMessage()
|
||||
{
|
||||
return $this->status_message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册详情状态码
|
||||
* @var int32 $status_detail
|
||||
*/
|
||||
public function setStatusDetail($status_detail)
|
||||
{
|
||||
$this->status_detail = $status_detail;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册详情状态码
|
||||
* @return int32
|
||||
*/
|
||||
public function getStatusDetail()
|
||||
{
|
||||
return $this->status_detail;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册详情状态码描述
|
||||
* @var string $status_detail_message
|
||||
*/
|
||||
public function setStatusDetailMessage($status_detail_message)
|
||||
{
|
||||
$this->status_detail_message = $status_detail_message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册详情状态码描述
|
||||
* @return string
|
||||
*/
|
||||
public function getStatusDetailMessage()
|
||||
{
|
||||
return $this->status_detail_message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册发起时间
|
||||
* @var string $applyed_at
|
||||
*/
|
||||
public function setApplyedAt($applyed_at)
|
||||
{
|
||||
$this->applyed_at = $applyed_at;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册发起时间
|
||||
* @return string
|
||||
*/
|
||||
public function getApplyedAt()
|
||||
{
|
||||
return $this->applyed_at;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册完成时间
|
||||
* @var string $registed_at
|
||||
*/
|
||||
public function setRegistedAt($registed_at)
|
||||
{
|
||||
$this->registed_at = $registed_at;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册完成时间
|
||||
* @return string
|
||||
*/
|
||||
public function getRegistedAt()
|
||||
{
|
||||
return $this->registed_at;
|
||||
}
|
||||
|
||||
/**
|
||||
* 统一社会信用代码
|
||||
* @var string $uscc
|
||||
*/
|
||||
public function setUscc($uscc)
|
||||
{
|
||||
$this->uscc = $uscc;
|
||||
}
|
||||
|
||||
/**
|
||||
* 统一社会信用代码
|
||||
* @return string
|
||||
*/
|
||||
public function getUscc()
|
||||
{
|
||||
return $this->uscc;
|
||||
}
|
||||
|
||||
/**
|
||||
* 身份证号码
|
||||
* @var string $id_card
|
||||
*/
|
||||
public function setIdCard($id_card)
|
||||
{
|
||||
$this->id_card = $id_card;
|
||||
}
|
||||
|
||||
/**
|
||||
* 身份证号码
|
||||
* @return string
|
||||
*/
|
||||
public function getIdCard()
|
||||
{
|
||||
return $this->id_card;
|
||||
}
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
* @var string $real_name
|
||||
*/
|
||||
public function setRealName($real_name)
|
||||
{
|
||||
$this->real_name = $real_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
* @return string
|
||||
*/
|
||||
public function getRealName()
|
||||
{
|
||||
return $this->real_name;
|
||||
}
|
||||
}
|
||||
62
extend/Yzh/Model/Bizlicxjjh5/H5GetStartUrlRequest.php
Normal file
62
extend/Yzh/Model/Bizlicxjjh5/H5GetStartUrlRequest.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicxjjh5;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 预启动请求
|
||||
* Class H5GetStartUrlRequest
|
||||
*/
|
||||
class H5GetStartUrlRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_id;
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string
|
||||
*/
|
||||
public $broker_id;
|
||||
/**
|
||||
* 平台企业端的用户 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_user_id;
|
||||
/**
|
||||
* 客户端类型
|
||||
* @var int32
|
||||
*/
|
||||
public $client_type;
|
||||
/**
|
||||
* 异步通知 URL
|
||||
* @var string
|
||||
*/
|
||||
public $notify_url;
|
||||
/**
|
||||
* H5 页面主题颜色
|
||||
* @var string
|
||||
*/
|
||||
public $color;
|
||||
/**
|
||||
* 跳转 URL
|
||||
* @var string
|
||||
*/
|
||||
public $return_url;
|
||||
/**
|
||||
* H5 页面 Title
|
||||
* @var int32
|
||||
*/
|
||||
public $customer_title;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
33
extend/Yzh/Model/Bizlicxjjh5/H5GetStartUrlResponse.php
Normal file
33
extend/Yzh/Model/Bizlicxjjh5/H5GetStartUrlResponse.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicxjjh5;
|
||||
|
||||
use Yzh\Model\BaseResponse;
|
||||
use Yzh\Model\ResponseInterface;
|
||||
|
||||
/**
|
||||
* 预启动返回
|
||||
* Class H5GetStartUrlResponse
|
||||
*/
|
||||
class H5GetStartUrlResponse extends BaseResponse implements ResponseInterface
|
||||
{
|
||||
/**
|
||||
* 获取数据对象
|
||||
* @return H5GetStartUrlResponseData
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置数据对象
|
||||
* @param array $data
|
||||
* @return self
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = new H5GetStartUrlResponseData($data);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
37
extend/Yzh/Model/Bizlicxjjh5/H5GetStartUrlResponseData.php
Normal file
37
extend/Yzh/Model/Bizlicxjjh5/H5GetStartUrlResponseData.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicxjjh5;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
use Yzh\Model\ResponseDataInterface;
|
||||
|
||||
/**
|
||||
* 预启动返回
|
||||
* Class H5GetStartUrlResponseData
|
||||
*/
|
||||
class H5GetStartUrlResponseData extends BaseModel implements ResponseDataInterface
|
||||
{
|
||||
/**
|
||||
* 跳转 URL
|
||||
* @var string
|
||||
*/
|
||||
protected $h5_url;
|
||||
|
||||
/**
|
||||
* 跳转 URL
|
||||
* @var string $h5_url
|
||||
*/
|
||||
public function setH5Url($h5_url)
|
||||
{
|
||||
$this->h5_url = $h5_url;
|
||||
}
|
||||
|
||||
/**
|
||||
* 跳转 URL
|
||||
* @return string
|
||||
*/
|
||||
public function getH5Url()
|
||||
{
|
||||
return $this->h5_url;
|
||||
}
|
||||
}
|
||||
92
extend/Yzh/Model/Bizlicxjjh5/NotifyH5EcoCityAicRequest.php
Normal file
92
extend/Yzh/Model/Bizlicxjjh5/NotifyH5EcoCityAicRequest.php
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicxjjh5;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 结果回调
|
||||
* Class NotifyH5EcoCityAicRequest
|
||||
*/
|
||||
class NotifyH5EcoCityAicRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 用户唯一标识
|
||||
* @var string
|
||||
*/
|
||||
public $open_id;
|
||||
/**
|
||||
* 平台企业端的用户 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_user_id;
|
||||
/**
|
||||
* 注册/注销提交时间
|
||||
* @var string
|
||||
*/
|
||||
public $submit_at;
|
||||
/**
|
||||
* 注册/注销完成时间
|
||||
* @var string
|
||||
*/
|
||||
public $registed_at;
|
||||
/**
|
||||
* 用户签约状态
|
||||
* @var int32
|
||||
*/
|
||||
public $status;
|
||||
/**
|
||||
* 注册状态描述
|
||||
* @var string
|
||||
*/
|
||||
public $status_message;
|
||||
/**
|
||||
* 注册详情状态码
|
||||
* @var int32
|
||||
*/
|
||||
public $status_detail;
|
||||
/**
|
||||
* 注册详情状态码描述
|
||||
* @var string
|
||||
*/
|
||||
public $status_detail_message;
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_id;
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string
|
||||
*/
|
||||
public $broker_id;
|
||||
/**
|
||||
* 统一社会信用代码
|
||||
* @var string
|
||||
*/
|
||||
public $uscc;
|
||||
/**
|
||||
* 身份证号码
|
||||
* @var string
|
||||
*/
|
||||
public $id_card;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
public $real_name;
|
||||
/**
|
||||
* 回调类型
|
||||
* @var int32
|
||||
*/
|
||||
public $type;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicxjjh5api;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 查询个体工商户状态请求
|
||||
* Class H5APIEcoCityAicStatusRequest
|
||||
*/
|
||||
class H5APIEcoCityAicStatusRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_id;
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string
|
||||
*/
|
||||
public $broker_id;
|
||||
/**
|
||||
* 平台企业端的用户 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_user_id;
|
||||
/**
|
||||
* 身份证号码
|
||||
* @var string
|
||||
*/
|
||||
public $id_card;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
public $real_name;
|
||||
/**
|
||||
* 用户唯一标识
|
||||
* @var string
|
||||
*/
|
||||
public $open_id;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicxjjh5api;
|
||||
|
||||
use Yzh\Model\BaseResponse;
|
||||
use Yzh\Model\ResponseInterface;
|
||||
|
||||
/**
|
||||
* 查询个体工商户状态返回
|
||||
* Class H5APIEcoCityAicStatusResponse
|
||||
*/
|
||||
class H5APIEcoCityAicStatusResponse extends BaseResponse implements ResponseInterface
|
||||
{
|
||||
/**
|
||||
* 获取数据对象
|
||||
* @return H5APIEcoCityAicStatusResponseData
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置数据对象
|
||||
* @param array $data
|
||||
* @return self
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = new H5APIEcoCityAicStatusResponseData($data);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,221 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicxjjh5api;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
use Yzh\Model\ResponseDataInterface;
|
||||
|
||||
/**
|
||||
* 查询个体工商户状态返回
|
||||
* Class H5APIEcoCityAicStatusResponseData
|
||||
*/
|
||||
class H5APIEcoCityAicStatusResponseData extends BaseModel implements ResponseDataInterface
|
||||
{
|
||||
/**
|
||||
* 用户签约状态
|
||||
* @var int32
|
||||
*/
|
||||
protected $status;
|
||||
/**
|
||||
* 注册状态描述
|
||||
* @var string
|
||||
*/
|
||||
protected $status_message;
|
||||
/**
|
||||
* 注册详情状态码
|
||||
* @var int32
|
||||
*/
|
||||
protected $status_detail;
|
||||
/**
|
||||
* 注册详情状态码描述
|
||||
* @var string
|
||||
*/
|
||||
protected $status_detail_message;
|
||||
/**
|
||||
* 注册发起时间
|
||||
* @var string
|
||||
*/
|
||||
protected $applyed_at;
|
||||
/**
|
||||
* 注册完成时间
|
||||
* @var string
|
||||
*/
|
||||
protected $registed_at;
|
||||
/**
|
||||
* 统一社会信用代码
|
||||
* @var string
|
||||
*/
|
||||
protected $uscc;
|
||||
/**
|
||||
* 身份证号码
|
||||
* @var string
|
||||
*/
|
||||
protected $id_card;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
protected $real_name;
|
||||
|
||||
/**
|
||||
* 用户签约状态
|
||||
* @var int32 $status
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户签约状态
|
||||
* @return int32
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册状态描述
|
||||
* @var string $status_message
|
||||
*/
|
||||
public function setStatusMessage($status_message)
|
||||
{
|
||||
$this->status_message = $status_message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册状态描述
|
||||
* @return string
|
||||
*/
|
||||
public function getStatusMessage()
|
||||
{
|
||||
return $this->status_message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册详情状态码
|
||||
* @var int32 $status_detail
|
||||
*/
|
||||
public function setStatusDetail($status_detail)
|
||||
{
|
||||
$this->status_detail = $status_detail;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册详情状态码
|
||||
* @return int32
|
||||
*/
|
||||
public function getStatusDetail()
|
||||
{
|
||||
return $this->status_detail;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册详情状态码描述
|
||||
* @var string $status_detail_message
|
||||
*/
|
||||
public function setStatusDetailMessage($status_detail_message)
|
||||
{
|
||||
$this->status_detail_message = $status_detail_message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册详情状态码描述
|
||||
* @return string
|
||||
*/
|
||||
public function getStatusDetailMessage()
|
||||
{
|
||||
return $this->status_detail_message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册发起时间
|
||||
* @var string $applyed_at
|
||||
*/
|
||||
public function setApplyedAt($applyed_at)
|
||||
{
|
||||
$this->applyed_at = $applyed_at;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册发起时间
|
||||
* @return string
|
||||
*/
|
||||
public function getApplyedAt()
|
||||
{
|
||||
return $this->applyed_at;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册完成时间
|
||||
* @var string $registed_at
|
||||
*/
|
||||
public function setRegistedAt($registed_at)
|
||||
{
|
||||
$this->registed_at = $registed_at;
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册完成时间
|
||||
* @return string
|
||||
*/
|
||||
public function getRegistedAt()
|
||||
{
|
||||
return $this->registed_at;
|
||||
}
|
||||
|
||||
/**
|
||||
* 统一社会信用代码
|
||||
* @var string $uscc
|
||||
*/
|
||||
public function setUscc($uscc)
|
||||
{
|
||||
$this->uscc = $uscc;
|
||||
}
|
||||
|
||||
/**
|
||||
* 统一社会信用代码
|
||||
* @return string
|
||||
*/
|
||||
public function getUscc()
|
||||
{
|
||||
return $this->uscc;
|
||||
}
|
||||
|
||||
/**
|
||||
* 身份证号码
|
||||
* @var string $id_card
|
||||
*/
|
||||
public function setIdCard($id_card)
|
||||
{
|
||||
$this->id_card = $id_card;
|
||||
}
|
||||
|
||||
/**
|
||||
* 身份证号码
|
||||
* @return string
|
||||
*/
|
||||
public function getIdCard()
|
||||
{
|
||||
return $this->id_card;
|
||||
}
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
* @var string $real_name
|
||||
*/
|
||||
public function setRealName($real_name)
|
||||
{
|
||||
$this->real_name = $real_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
* @return string
|
||||
*/
|
||||
public function getRealName()
|
||||
{
|
||||
return $this->real_name;
|
||||
}
|
||||
}
|
||||
62
extend/Yzh/Model/Bizlicxjjh5api/H5APIGetStartUrlRequest.php
Normal file
62
extend/Yzh/Model/Bizlicxjjh5api/H5APIGetStartUrlRequest.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicxjjh5api;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 预启动请求
|
||||
* Class H5APIGetStartUrlRequest
|
||||
*/
|
||||
class H5APIGetStartUrlRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_id;
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string
|
||||
*/
|
||||
public $broker_id;
|
||||
/**
|
||||
* 平台企业端的用户 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_user_id;
|
||||
/**
|
||||
* 客户端类型
|
||||
* @var int32
|
||||
*/
|
||||
public $client_type;
|
||||
/**
|
||||
* 异步通知 URL
|
||||
* @var string
|
||||
*/
|
||||
public $notify_url;
|
||||
/**
|
||||
* H5 页面主题颜色
|
||||
* @var string
|
||||
*/
|
||||
public $color;
|
||||
/**
|
||||
* 跳转 URL
|
||||
* @var string
|
||||
*/
|
||||
public $return_url;
|
||||
/**
|
||||
* H5 页面 Title
|
||||
* @var int32
|
||||
*/
|
||||
public $customer_title;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
33
extend/Yzh/Model/Bizlicxjjh5api/H5APIGetStartUrlResponse.php
Normal file
33
extend/Yzh/Model/Bizlicxjjh5api/H5APIGetStartUrlResponse.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicxjjh5api;
|
||||
|
||||
use Yzh\Model\BaseResponse;
|
||||
use Yzh\Model\ResponseInterface;
|
||||
|
||||
/**
|
||||
* 预启动返回
|
||||
* Class H5APIGetStartUrlResponse
|
||||
*/
|
||||
class H5APIGetStartUrlResponse extends BaseResponse implements ResponseInterface
|
||||
{
|
||||
/**
|
||||
* 获取数据对象
|
||||
* @return H5APIGetStartUrlResponseData
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置数据对象
|
||||
* @param array $data
|
||||
* @return self
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = new H5APIGetStartUrlResponseData($data);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicxjjh5api;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
use Yzh\Model\ResponseDataInterface;
|
||||
|
||||
/**
|
||||
* 预启动返回
|
||||
* Class H5APIGetStartUrlResponseData
|
||||
*/
|
||||
class H5APIGetStartUrlResponseData extends BaseModel implements ResponseDataInterface
|
||||
{
|
||||
/**
|
||||
* 跳转 URL
|
||||
* @var string
|
||||
*/
|
||||
protected $h5_url;
|
||||
|
||||
/**
|
||||
* 跳转 URL
|
||||
* @var string $h5_url
|
||||
*/
|
||||
public function setH5Url($h5_url)
|
||||
{
|
||||
$this->h5_url = $h5_url;
|
||||
}
|
||||
|
||||
/**
|
||||
* 跳转 URL
|
||||
* @return string
|
||||
*/
|
||||
public function getH5Url()
|
||||
{
|
||||
return $this->h5_url;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicxjjh5api;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 工商实名信息录入请求
|
||||
* Class H5PreCollectBizlicMsgRequest
|
||||
*/
|
||||
class H5PreCollectBizlicMsgRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_id;
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string
|
||||
*/
|
||||
public $broker_id;
|
||||
/**
|
||||
* 平台企业端的用户 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_user_id;
|
||||
/**
|
||||
* 手机号
|
||||
* @var string
|
||||
*/
|
||||
public $phone_no;
|
||||
/**
|
||||
* 身份证号码
|
||||
* @var string
|
||||
*/
|
||||
public $id_card;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
public $real_name;
|
||||
/**
|
||||
* 身份证住址
|
||||
* @var string
|
||||
*/
|
||||
public $id_card_address;
|
||||
/**
|
||||
* 身份证签发机关
|
||||
* @var string
|
||||
*/
|
||||
public $id_card_agency;
|
||||
/**
|
||||
* 身份证民族
|
||||
* @var string
|
||||
*/
|
||||
public $id_card_nation;
|
||||
/**
|
||||
* 身份证有效期开始时间
|
||||
* @var string
|
||||
*/
|
||||
public $id_card_validity_start;
|
||||
/**
|
||||
* 身份证有效期结束时间
|
||||
* @var string
|
||||
*/
|
||||
public $id_card_validity_end;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicxjjh5api;
|
||||
|
||||
use Yzh\Model\BaseResponse;
|
||||
use Yzh\Model\ResponseInterface;
|
||||
|
||||
/**
|
||||
* 工商实名信息录入返回
|
||||
* Class H5PreCollectBizlicMsgResponse
|
||||
*/
|
||||
class H5PreCollectBizlicMsgResponse extends BaseResponse implements ResponseInterface
|
||||
{
|
||||
/**
|
||||
* 获取数据对象
|
||||
* @return H5PreCollectBizlicMsgResponseData
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置数据对象
|
||||
* @param array $data
|
||||
* @return self
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = new H5PreCollectBizlicMsgResponseData($data);
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicxjjh5api;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
use Yzh\Model\ResponseDataInterface;
|
||||
|
||||
/**
|
||||
* 工商实名信息录入返回
|
||||
* Class H5PreCollectBizlicMsgResponseData
|
||||
*/
|
||||
class H5PreCollectBizlicMsgResponseData extends BaseModel implements ResponseDataInterface
|
||||
{
|
||||
/**
|
||||
* 平台企业端的用户 ID
|
||||
* @var string
|
||||
*/
|
||||
protected $dealer_user_id;
|
||||
|
||||
/**
|
||||
* 平台企业端的用户 ID
|
||||
* @var string $dealer_user_id
|
||||
*/
|
||||
public function setDealerUserId($dealer_user_id)
|
||||
{
|
||||
$this->dealer_user_id = $dealer_user_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 平台企业端的用户 ID
|
||||
* @return string
|
||||
*/
|
||||
public function getDealerUserId()
|
||||
{
|
||||
return $this->dealer_user_id;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Bizlicxjjh5api;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/**
|
||||
* 结果回调
|
||||
* Class NotifyH5APIEcoCityAicRequest
|
||||
*/
|
||||
class NotifyH5APIEcoCityAicRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* 用户唯一标识
|
||||
* @var string
|
||||
*/
|
||||
public $open_id;
|
||||
/**
|
||||
* 平台企业端的用户 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_user_id;
|
||||
/**
|
||||
* 注册/注销提交时间
|
||||
* @var string
|
||||
*/
|
||||
public $submit_at;
|
||||
/**
|
||||
* 注册/注销完成时间
|
||||
* @var string
|
||||
*/
|
||||
public $registed_at;
|
||||
/**
|
||||
* 用户签约状态
|
||||
* @var int32
|
||||
*/
|
||||
public $status;
|
||||
/**
|
||||
* 注册状态描述
|
||||
* @var string
|
||||
*/
|
||||
public $status_message;
|
||||
/**
|
||||
* 注册详情状态码
|
||||
* @var int32
|
||||
*/
|
||||
public $status_detail;
|
||||
/**
|
||||
* 注册详情状态码描述
|
||||
* @var string
|
||||
*/
|
||||
public $status_detail_message;
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string
|
||||
*/
|
||||
public $dealer_id;
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string
|
||||
*/
|
||||
public $broker_id;
|
||||
/**
|
||||
* 统一社会信用代码
|
||||
* @var string
|
||||
*/
|
||||
public $uscc;
|
||||
/**
|
||||
* 身份证号码
|
||||
* @var string
|
||||
*/
|
||||
public $id_card;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
public $real_name;
|
||||
/**
|
||||
* 回调类型
|
||||
* @var int32
|
||||
*/
|
||||
public $type;
|
||||
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
20
extend/Yzh/Model/Custom/CustomRequest.php
Normal file
20
extend/Yzh/Model/Custom/CustomRequest.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Custom;
|
||||
|
||||
use Yzh\Model\BaseRequest;
|
||||
|
||||
/*
|
||||
* 自定义请求
|
||||
*/
|
||||
class CustomRequest extends BaseRequest
|
||||
{
|
||||
public function __construct($params = array())
|
||||
{
|
||||
foreach (array_keys(get_object_vars($this)) as $property) {
|
||||
if (isset($params[$property])) {
|
||||
$this->{$property} = $params[$property];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
47
extend/Yzh/Model/Custom/CustomResponse.php
Normal file
47
extend/Yzh/Model/Custom/CustomResponse.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Custom;
|
||||
|
||||
use Yzh\Model\BaseResponse;
|
||||
use Yzh\Model\ResponseInterface;
|
||||
|
||||
/**
|
||||
* 自定义返回
|
||||
*/
|
||||
class CustomResponse extends BaseResponse implements ResponseInterface
|
||||
{
|
||||
/**
|
||||
* @var Object $customer_data 响应 data 数据
|
||||
*/
|
||||
protected $customer_data;
|
||||
|
||||
/**
|
||||
* 写入 data 数据
|
||||
* @param $data
|
||||
* @return $this|ResponseInterface
|
||||
*/
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* data 数据解析
|
||||
* @param $response
|
||||
* @return void
|
||||
*/
|
||||
public function setCustomerData($response) {
|
||||
$class = get_class($response);
|
||||
$this->customer_data = new $class($this->data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 响应 data 数据
|
||||
* @return Object
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->customer_data;
|
||||
}
|
||||
}
|
||||
13
extend/Yzh/Model/Custom/CustomResponseData.php
Normal file
13
extend/Yzh/Model/Custom/CustomResponseData.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Custom;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
use Yzh\Model\ResponseDataInterface;
|
||||
|
||||
/**
|
||||
* 自定义响应 data 数据
|
||||
*/
|
||||
class CustomResponseData extends BaseModel implements ResponseDataInterface
|
||||
{
|
||||
}
|
||||
151
extend/Yzh/Model/Dataservice/DailyOrderSummary.php
Normal file
151
extend/Yzh/Model/Dataservice/DailyOrderSummary.php
Normal file
@@ -0,0 +1,151 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Dataservice;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
|
||||
/**
|
||||
* 日订单汇总详情
|
||||
* Class DailyOrderSummary
|
||||
*/
|
||||
class DailyOrderSummary extends BaseModel
|
||||
{
|
||||
/**
|
||||
* 订单数量
|
||||
* @var int32
|
||||
*/
|
||||
protected $order_num;
|
||||
/**
|
||||
* 订单金额
|
||||
* @var string
|
||||
*/
|
||||
protected $pay;
|
||||
/**
|
||||
* 加成服务费金额
|
||||
* @var string
|
||||
*/
|
||||
protected $broker_fee;
|
||||
/**
|
||||
* 加成服务费实收金额
|
||||
* @var string
|
||||
*/
|
||||
protected $broker_real_fee;
|
||||
/**
|
||||
* 已抵扣加成服务费金额
|
||||
* @var string
|
||||
*/
|
||||
protected $broker_rebate_fee;
|
||||
/**
|
||||
* 用户加成服务费金额
|
||||
* @var string
|
||||
*/
|
||||
protected $user_fee;
|
||||
|
||||
/**
|
||||
* 订单数量
|
||||
* @var int32 $order_num
|
||||
*/
|
||||
public function setOrderNum($order_num)
|
||||
{
|
||||
$this->order_num = $order_num;
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单数量
|
||||
* @return int32
|
||||
*/
|
||||
public function getOrderNum()
|
||||
{
|
||||
return $this->order_num;
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单金额
|
||||
* @var string $pay
|
||||
*/
|
||||
public function setPay($pay)
|
||||
{
|
||||
$this->pay = $pay;
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单金额
|
||||
* @return string
|
||||
*/
|
||||
public function getPay()
|
||||
{
|
||||
return $this->pay;
|
||||
}
|
||||
|
||||
/**
|
||||
* 加成服务费金额
|
||||
* @var string $broker_fee
|
||||
*/
|
||||
public function setBrokerFee($broker_fee)
|
||||
{
|
||||
$this->broker_fee = $broker_fee;
|
||||
}
|
||||
|
||||
/**
|
||||
* 加成服务费金额
|
||||
* @return string
|
||||
*/
|
||||
public function getBrokerFee()
|
||||
{
|
||||
return $this->broker_fee;
|
||||
}
|
||||
|
||||
/**
|
||||
* 加成服务费实收金额
|
||||
* @var string $broker_real_fee
|
||||
*/
|
||||
public function setBrokerRealFee($broker_real_fee)
|
||||
{
|
||||
$this->broker_real_fee = $broker_real_fee;
|
||||
}
|
||||
|
||||
/**
|
||||
* 加成服务费实收金额
|
||||
* @return string
|
||||
*/
|
||||
public function getBrokerRealFee()
|
||||
{
|
||||
return $this->broker_real_fee;
|
||||
}
|
||||
|
||||
/**
|
||||
* 已抵扣加成服务费金额
|
||||
* @var string $broker_rebate_fee
|
||||
*/
|
||||
public function setBrokerRebateFee($broker_rebate_fee)
|
||||
{
|
||||
$this->broker_rebate_fee = $broker_rebate_fee;
|
||||
}
|
||||
|
||||
/**
|
||||
* 已抵扣加成服务费金额
|
||||
* @return string
|
||||
*/
|
||||
public function getBrokerRebateFee()
|
||||
{
|
||||
return $this->broker_rebate_fee;
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户加成服务费金额
|
||||
* @var string $user_fee
|
||||
*/
|
||||
public function setUserFee($user_fee)
|
||||
{
|
||||
$this->user_fee = $user_fee;
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户加成服务费金额
|
||||
* @return string
|
||||
*/
|
||||
public function getUserFee()
|
||||
{
|
||||
return $this->user_fee;
|
||||
}
|
||||
}
|
||||
358
extend/Yzh/Model/Dataservice/DealerBillInfo.php
Normal file
358
extend/Yzh/Model/Dataservice/DealerBillInfo.php
Normal file
@@ -0,0 +1,358 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Dataservice;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
|
||||
/**
|
||||
* 流水详情
|
||||
* Class DealerBillInfo
|
||||
*/
|
||||
class DealerBillInfo extends BaseModel
|
||||
{
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string
|
||||
*/
|
||||
protected $broker_id;
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string
|
||||
*/
|
||||
protected $dealer_id;
|
||||
/**
|
||||
* 平台企业订单号
|
||||
* @var string
|
||||
*/
|
||||
protected $order_id;
|
||||
/**
|
||||
* 资金流水号
|
||||
* @var string
|
||||
*/
|
||||
protected $ref;
|
||||
/**
|
||||
* 综合服务主体名称
|
||||
* @var string
|
||||
*/
|
||||
protected $broker_product_name;
|
||||
/**
|
||||
* 平台企业名称
|
||||
* @var string
|
||||
*/
|
||||
protected $dealer_product_name;
|
||||
/**
|
||||
* 业务订单流水号
|
||||
* @var string
|
||||
*/
|
||||
protected $biz_ref;
|
||||
/**
|
||||
* 账户类型
|
||||
* @var string
|
||||
*/
|
||||
protected $acct_type;
|
||||
/**
|
||||
* 入账金额
|
||||
* @var string
|
||||
*/
|
||||
protected $amount;
|
||||
/**
|
||||
* 账户余额
|
||||
* @var string
|
||||
*/
|
||||
protected $balance;
|
||||
/**
|
||||
* 业务分类
|
||||
* @var string
|
||||
*/
|
||||
protected $business_category;
|
||||
/**
|
||||
* 业务类型
|
||||
* @var string
|
||||
*/
|
||||
protected $business_type;
|
||||
/**
|
||||
* 收支类型
|
||||
* @var string
|
||||
*/
|
||||
protected $consumption_type;
|
||||
/**
|
||||
* 入账时间
|
||||
* @var string
|
||||
*/
|
||||
protected $created_at;
|
||||
/**
|
||||
* 备注
|
||||
* @var string
|
||||
*/
|
||||
protected $remark;
|
||||
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string $broker_id
|
||||
*/
|
||||
public function setBrokerId($broker_id)
|
||||
{
|
||||
$this->broker_id = $broker_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @return string
|
||||
*/
|
||||
public function getBrokerId()
|
||||
{
|
||||
return $this->broker_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string $dealer_id
|
||||
*/
|
||||
public function setDealerId($dealer_id)
|
||||
{
|
||||
$this->dealer_id = $dealer_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @return string
|
||||
*/
|
||||
public function getDealerId()
|
||||
{
|
||||
return $this->dealer_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 平台企业订单号
|
||||
* @var string $order_id
|
||||
*/
|
||||
public function setOrderId($order_id)
|
||||
{
|
||||
$this->order_id = $order_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 平台企业订单号
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->order_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 资金流水号
|
||||
* @var string $ref
|
||||
*/
|
||||
public function setRef($ref)
|
||||
{
|
||||
$this->ref = $ref;
|
||||
}
|
||||
|
||||
/**
|
||||
* 资金流水号
|
||||
* @return string
|
||||
*/
|
||||
public function getRef()
|
||||
{
|
||||
return $this->ref;
|
||||
}
|
||||
|
||||
/**
|
||||
* 综合服务主体名称
|
||||
* @var string $broker_product_name
|
||||
*/
|
||||
public function setBrokerProductName($broker_product_name)
|
||||
{
|
||||
$this->broker_product_name = $broker_product_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 综合服务主体名称
|
||||
* @return string
|
||||
*/
|
||||
public function getBrokerProductName()
|
||||
{
|
||||
return $this->broker_product_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 平台企业名称
|
||||
* @var string $dealer_product_name
|
||||
*/
|
||||
public function setDealerProductName($dealer_product_name)
|
||||
{
|
||||
$this->dealer_product_name = $dealer_product_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 平台企业名称
|
||||
* @return string
|
||||
*/
|
||||
public function getDealerProductName()
|
||||
{
|
||||
return $this->dealer_product_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 业务订单流水号
|
||||
* @var string $biz_ref
|
||||
*/
|
||||
public function setBizRef($biz_ref)
|
||||
{
|
||||
$this->biz_ref = $biz_ref;
|
||||
}
|
||||
|
||||
/**
|
||||
* 业务订单流水号
|
||||
* @return string
|
||||
*/
|
||||
public function getBizRef()
|
||||
{
|
||||
return $this->biz_ref;
|
||||
}
|
||||
|
||||
/**
|
||||
* 账户类型
|
||||
* @var string $acct_type
|
||||
*/
|
||||
public function setAcctType($acct_type)
|
||||
{
|
||||
$this->acct_type = $acct_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* 账户类型
|
||||
* @return string
|
||||
*/
|
||||
public function getAcctType()
|
||||
{
|
||||
return $this->acct_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* 入账金额
|
||||
* @var string $amount
|
||||
*/
|
||||
public function setAmount($amount)
|
||||
{
|
||||
$this->amount = $amount;
|
||||
}
|
||||
|
||||
/**
|
||||
* 入账金额
|
||||
* @return string
|
||||
*/
|
||||
public function getAmount()
|
||||
{
|
||||
return $this->amount;
|
||||
}
|
||||
|
||||
/**
|
||||
* 账户余额
|
||||
* @var string $balance
|
||||
*/
|
||||
public function setBalance($balance)
|
||||
{
|
||||
$this->balance = $balance;
|
||||
}
|
||||
|
||||
/**
|
||||
* 账户余额
|
||||
* @return string
|
||||
*/
|
||||
public function getBalance()
|
||||
{
|
||||
return $this->balance;
|
||||
}
|
||||
|
||||
/**
|
||||
* 业务分类
|
||||
* @var string $business_category
|
||||
*/
|
||||
public function setBusinessCategory($business_category)
|
||||
{
|
||||
$this->business_category = $business_category;
|
||||
}
|
||||
|
||||
/**
|
||||
* 业务分类
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessCategory()
|
||||
{
|
||||
return $this->business_category;
|
||||
}
|
||||
|
||||
/**
|
||||
* 业务类型
|
||||
* @var string $business_type
|
||||
*/
|
||||
public function setBusinessType($business_type)
|
||||
{
|
||||
$this->business_type = $business_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* 业务类型
|
||||
* @return string
|
||||
*/
|
||||
public function getBusinessType()
|
||||
{
|
||||
return $this->business_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* 收支类型
|
||||
* @var string $consumption_type
|
||||
*/
|
||||
public function setConsumptionType($consumption_type)
|
||||
{
|
||||
$this->consumption_type = $consumption_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* 收支类型
|
||||
* @return string
|
||||
*/
|
||||
public function getConsumptionType()
|
||||
{
|
||||
return $this->consumption_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* 入账时间
|
||||
* @var string $created_at
|
||||
*/
|
||||
public function setCreatedAt($created_at)
|
||||
{
|
||||
$this->created_at = $created_at;
|
||||
}
|
||||
|
||||
/**
|
||||
* 入账时间
|
||||
* @return string
|
||||
*/
|
||||
public function getCreatedAt()
|
||||
{
|
||||
return $this->created_at;
|
||||
}
|
||||
|
||||
/**
|
||||
* 备注
|
||||
* @var string $remark
|
||||
*/
|
||||
public function setRemark($remark)
|
||||
{
|
||||
$this->remark = $remark;
|
||||
}
|
||||
|
||||
/**
|
||||
* 备注
|
||||
* @return string
|
||||
*/
|
||||
public function getRemark()
|
||||
{
|
||||
return $this->remark;
|
||||
}
|
||||
}
|
||||
496
extend/Yzh/Model/Dataservice/DealerOrderInfo.php
Normal file
496
extend/Yzh/Model/Dataservice/DealerOrderInfo.php
Normal file
@@ -0,0 +1,496 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Model\Dataservice;
|
||||
|
||||
use Yzh\Model\BaseModel;
|
||||
|
||||
/**
|
||||
* 平台企业支付订单信息
|
||||
* Class DealerOrderInfo
|
||||
*/
|
||||
class DealerOrderInfo extends BaseModel
|
||||
{
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string
|
||||
*/
|
||||
protected $broker_id;
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string
|
||||
*/
|
||||
protected $dealer_id;
|
||||
/**
|
||||
* 平台企业订单号
|
||||
* @var string
|
||||
*/
|
||||
protected $order_id;
|
||||
/**
|
||||
* 订单流水号
|
||||
* @var string
|
||||
*/
|
||||
protected $ref;
|
||||
/**
|
||||
* 批次ID
|
||||
* @var string
|
||||
*/
|
||||
protected $batch_id;
|
||||
/**
|
||||
* 姓名
|
||||
* @var string
|
||||
*/
|
||||
protected $real_name;
|
||||
/**
|
||||
* 收款账号
|
||||
* @var string
|
||||
*/
|
||||
protected $card_no;
|
||||
/**
|
||||
* 综合服务主体订单金额
|
||||
* @var string
|
||||
*/
|
||||
protected $broker_amount;
|
||||
/**
|
||||
* 综合服务主体加成服务费
|
||||
* @var string
|
||||
*/
|
||||
protected $broker_fee;
|
||||
/**
|
||||
* 支付路径流水号
|
||||
* @var string
|
||||
*/
|
||||
protected $bill;
|
||||
/**
|
||||
* 订单状态
|
||||
* @var string
|
||||
*/
|
||||
protected $status;
|
||||
/**
|
||||
* 订单状态码描述
|
||||
* @var string
|
||||
*/
|
||||
protected $status_message;
|
||||
/**
|
||||
* 订单详情
|
||||
* @var string
|
||||
*/
|
||||
protected $status_detail;
|
||||
/**
|
||||
* 订单详细状态码描述
|
||||
* @var string
|
||||
*/
|
||||
protected $status_detail_message;
|
||||
/**
|
||||
* 订单状态补充信息
|
||||
* @var string
|
||||
*/
|
||||
protected $supplemental_detail_message;
|
||||
/**
|
||||
* 短周期授信账单号
|
||||
* @var string
|
||||
*/
|
||||
protected $statement_id;
|
||||
/**
|
||||
* 服务费账单号
|
||||
* @var string
|
||||
*/
|
||||
protected $fee_statement_id;
|
||||
/**
|
||||
* 余额账单号
|
||||
* @var string
|
||||
*/
|
||||
protected $bal_statement_id;
|
||||
/**
|
||||
* 支付路径
|
||||
* @var string
|
||||
*/
|
||||
protected $channel;
|
||||
/**
|
||||
* 创建时间
|
||||
* @var string
|
||||
*/
|
||||
protected $created_at;
|
||||
/**
|
||||
* 完成时间
|
||||
* @var string
|
||||
*/
|
||||
protected $finished_time;
|
||||
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @var string $broker_id
|
||||
*/
|
||||
public function setBrokerId($broker_id)
|
||||
{
|
||||
$this->broker_id = $broker_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 综合服务主体 ID
|
||||
* @return string
|
||||
*/
|
||||
public function getBrokerId()
|
||||
{
|
||||
return $this->broker_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @var string $dealer_id
|
||||
*/
|
||||
public function setDealerId($dealer_id)
|
||||
{
|
||||
$this->dealer_id = $dealer_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 平台企业 ID
|
||||
* @return string
|
||||
*/
|
||||
public function getDealerId()
|
||||
{
|
||||
return $this->dealer_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 平台企业订单号
|
||||
* @var string $order_id
|
||||
*/
|
||||
public function setOrderId($order_id)
|
||||
{
|
||||
$this->order_id = $order_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 平台企业订单号
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->order_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单流水号
|
||||
* @var string $ref
|
||||
*/
|
||||
public function setRef($ref)
|
||||
{
|
||||
$this->ref = $ref;
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单流水号
|
||||
* @return string
|
||||
*/
|
||||
public function getRef()
|
||||
{
|
||||
return $this->ref;
|
||||
}
|
||||
|
||||
/**
|
||||
* 批次ID
|
||||
* @var string $batch_id
|
||||
*/
|
||||
public function setBatchId($batch_id)
|
||||
{
|
||||
$this->batch_id = $batch_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 批次ID
|
||||
* @return string
|
||||
*/
|
||||
public function getBatchId()
|
||||
{
|
||||
return $this->batch_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
* @var string $real_name
|
||||
*/
|
||||
public function setRealName($real_name)
|
||||
{
|
||||
$this->real_name = $real_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 姓名
|
||||
* @return string
|
||||
*/
|
||||
public function getRealName()
|
||||
{
|
||||
return $this->real_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 收款账号
|
||||
* @var string $card_no
|
||||
*/
|
||||
public function setCardNo($card_no)
|
||||
{
|
||||
$this->card_no = $card_no;
|
||||
}
|
||||
|
||||
/**
|
||||
* 收款账号
|
||||
* @return string
|
||||
*/
|
||||
public function getCardNo()
|
||||
{
|
||||
return $this->card_no;
|
||||
}
|
||||
|
||||
/**
|
||||
* 综合服务主体订单金额
|
||||
* @var string $broker_amount
|
||||
*/
|
||||
public function setBrokerAmount($broker_amount)
|
||||
{
|
||||
$this->broker_amount = $broker_amount;
|
||||
}
|
||||
|
||||
/**
|
||||
* 综合服务主体订单金额
|
||||
* @return string
|
||||
*/
|
||||
public function getBrokerAmount()
|
||||
{
|
||||
return $this->broker_amount;
|
||||
}
|
||||
|
||||
/**
|
||||
* 综合服务主体加成服务费
|
||||
* @var string $broker_fee
|
||||
*/
|
||||
public function setBrokerFee($broker_fee)
|
||||
{
|
||||
$this->broker_fee = $broker_fee;
|
||||
}
|
||||
|
||||
/**
|
||||
* 综合服务主体加成服务费
|
||||
* @return string
|
||||
*/
|
||||
public function getBrokerFee()
|
||||
{
|
||||
return $this->broker_fee;
|
||||
}
|
||||
|
||||
/**
|
||||
* 支付路径流水号
|
||||
* @var string $bill
|
||||
*/
|
||||
public function setBill($bill)
|
||||
{
|
||||
$this->bill = $bill;
|
||||
}
|
||||
|
||||
/**
|
||||
* 支付路径流水号
|
||||
* @return string
|
||||
*/
|
||||
public function getBill()
|
||||
{
|
||||
return $this->bill;
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单状态
|
||||
* @var string $status
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单状态
|
||||
* @return string
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单状态码描述
|
||||
* @var string $status_message
|
||||
*/
|
||||
public function setStatusMessage($status_message)
|
||||
{
|
||||
$this->status_message = $status_message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单状态码描述
|
||||
* @return string
|
||||
*/
|
||||
public function getStatusMessage()
|
||||
{
|
||||
return $this->status_message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单详情
|
||||
* @var string $status_detail
|
||||
*/
|
||||
public function setStatusDetail($status_detail)
|
||||
{
|
||||
$this->status_detail = $status_detail;
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单详情
|
||||
* @return string
|
||||
*/
|
||||
public function getStatusDetail()
|
||||
{
|
||||
return $this->status_detail;
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单详细状态码描述
|
||||
* @var string $status_detail_message
|
||||
*/
|
||||
public function setStatusDetailMessage($status_detail_message)
|
||||
{
|
||||
$this->status_detail_message = $status_detail_message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单详细状态码描述
|
||||
* @return string
|
||||
*/
|
||||
public function getStatusDetailMessage()
|
||||
{
|
||||
return $this->status_detail_message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单状态补充信息
|
||||
* @var string $supplemental_detail_message
|
||||
*/
|
||||
public function setSupplementalDetailMessage($supplemental_detail_message)
|
||||
{
|
||||
$this->supplemental_detail_message = $supplemental_detail_message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单状态补充信息
|
||||
* @return string
|
||||
*/
|
||||
public function getSupplementalDetailMessage()
|
||||
{
|
||||
return $this->supplemental_detail_message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 短周期授信账单号
|
||||
* @var string $statement_id
|
||||
*/
|
||||
public function setStatementId($statement_id)
|
||||
{
|
||||
$this->statement_id = $statement_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 短周期授信账单号
|
||||
* @return string
|
||||
*/
|
||||
public function getStatementId()
|
||||
{
|
||||
return $this->statement_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 服务费账单号
|
||||
* @var string $fee_statement_id
|
||||
*/
|
||||
public function setFeeStatementId($fee_statement_id)
|
||||
{
|
||||
$this->fee_statement_id = $fee_statement_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 服务费账单号
|
||||
* @return string
|
||||
*/
|
||||
public function getFeeStatementId()
|
||||
{
|
||||
return $this->fee_statement_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 余额账单号
|
||||
* @var string $bal_statement_id
|
||||
*/
|
||||
public function setBalStatementId($bal_statement_id)
|
||||
{
|
||||
$this->bal_statement_id = $bal_statement_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 余额账单号
|
||||
* @return string
|
||||
*/
|
||||
public function getBalStatementId()
|
||||
{
|
||||
return $this->bal_statement_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 支付路径
|
||||
* @var string $channel
|
||||
*/
|
||||
public function setChannel($channel)
|
||||
{
|
||||
$this->channel = $channel;
|
||||
}
|
||||
|
||||
/**
|
||||
* 支付路径
|
||||
* @return string
|
||||
*/
|
||||
public function getChannel()
|
||||
{
|
||||
return $this->channel;
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
* @var string $created_at
|
||||
*/
|
||||
public function setCreatedAt($created_at)
|
||||
{
|
||||
$this->created_at = $created_at;
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
* @return string
|
||||
*/
|
||||
public function getCreatedAt()
|
||||
{
|
||||
return $this->created_at;
|
||||
}
|
||||
|
||||
/**
|
||||
* 完成时间
|
||||
* @var string $finished_time
|
||||
*/
|
||||
public function setFinishedTime($finished_time)
|
||||
{
|
||||
$this->finished_time = $finished_time;
|
||||
}
|
||||
|
||||
/**
|
||||
* 完成时间
|
||||
* @return string
|
||||
*/
|
||||
public function getFinishedTime()
|
||||
{
|
||||
return $this->finished_time;
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user