first commit

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

View File

@@ -0,0 +1,388 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay;
use Yeepay\Yop\Sdk\Client\ClientExecutionParams;
use Yeepay\Yop\Sdk\Client\ClientHandler;
use Yeepay\Yop\Sdk\Client\ClientParams;
use Yeepay\Yop\Sdk\Exception\YopClientException;
use Yeepay\Yop\Sdk\Service\Facepay\Model as Model;
class FacepayClient
{
/**
* @var ClientHandler
*/
private $clientHandler;
/**
* FacepayClient constructor.
* @param ClientParams $clientParams
*/
function __construct(ClientParams $clientParams)
{
$this->clientHandler = new ClientHandler($clientParams);
}
/**
* @param Model\FacepayProxyBindConfirmSmsRequest $request
* @return Model\FacepayProxyBindConfirmSmsResponse
* @throws YopClientException
*/
public function facepayProxyBindConfirmSms(Model\FacepayProxyBindConfirmSmsRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\FacepayProxyBindConfirmSmsRequestMarshaller::getInstance(),
Model\FacepayProxyBindConfirmSmsResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\FacepayProxyBindFirstCardRequest $request
* @return Model\FacepayProxyBindFirstCardResponse
* @throws YopClientException
*/
public function facepayProxyBindFirstCard(Model\FacepayProxyBindFirstCardRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\FacepayProxyBindFirstCardRequestMarshaller::getInstance(),
Model\FacepayProxyBindFirstCardResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\FacepayProxyBindSendSmsRequest $request
* @return Model\FacepayProxyBindSendSmsResponse
* @throws YopClientException
*/
public function facepayProxyBindSendSms(Model\FacepayProxyBindSendSmsRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\FacepayProxyBindSendSmsRequestMarshaller::getInstance(),
Model\FacepayProxyBindSendSmsResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\FacepayProxyCertificateNoAuthRequest $request
* @return Model\FacepayProxyCertificateNoAuthResponse
* @throws YopClientException
*/
public function facepayProxyCertificateNoAuth(Model\FacepayProxyCertificateNoAuthRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\FacepayProxyCertificateNoAuthRequestMarshaller::getInstance(),
Model\FacepayProxyCertificateNoAuthResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\FacepayProxyCheckLogonSmscodeRequest $request
* @return Model\FacepayProxyCheckLogonSmscodeResponse
* @throws YopClientException
*/
public function facepayProxyCheckLogonSmscode(Model\FacepayProxyCheckLogonSmscodeRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\FacepayProxyCheckLogonSmscodeRequestMarshaller::getInstance(),
Model\FacepayProxyCheckLogonSmscodeResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\FacepayProxyConfirmFirstCardSmscodeRequest $request
* @return Model\FacepayProxyConfirmFirstCardSmscodeResponse
* @throws YopClientException
*/
public function facepayProxyConfirmFirstCardSmscode(Model\FacepayProxyConfirmFirstCardSmscodeRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\FacepayProxyConfirmFirstCardSmscodeRequestMarshaller::getInstance(),
Model\FacepayProxyConfirmFirstCardSmscodeResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\FacepayProxyConfirmVerifySmscodeRequest $request
* @return Model\FacepayProxyConfirmVerifySmscodeResponse
* @throws YopClientException
*/
public function facepayProxyConfirmVerifySmscode(Model\FacepayProxyConfirmVerifySmscodeRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\FacepayProxyConfirmVerifySmscodeRequestMarshaller::getInstance(),
Model\FacepayProxyConfirmVerifySmscodeResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\FacepayProxyCreateBindCardRequest $request
* @return Model\FacepayProxyCreateBindCardResponse
* @throws YopClientException
*/
public function facepayProxyCreateBindCard(Model\FacepayProxyCreateBindCardRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\FacepayProxyCreateBindCardRequestMarshaller::getInstance(),
Model\FacepayProxyCreateBindCardResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\FacepayProxyCreateOrderRequest $request
* @return Model\FacepayProxyCreateOrderResponse
* @throws YopClientException
*/
public function facepayProxyCreateOrder(Model\FacepayProxyCreateOrderRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\FacepayProxyCreateOrderRequestMarshaller::getInstance(),
Model\FacepayProxyCreateOrderResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\FacepayProxyFaceLogonRequest $request
* @return Model\FacepayProxyFaceLogonResponse
* @throws YopClientException
*/
public function facepayProxyFaceLogon(Model\FacepayProxyFaceLogonRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\FacepayProxyFaceLogonRequestMarshaller::getInstance(),
Model\FacepayProxyFaceLogonResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\FacepayProxyOpenFaceAccountRequest $request
* @return Model\FacepayProxyOpenFaceAccountResponse
* @throws YopClientException
*/
public function facepayProxyOpenFaceAccount(Model\FacepayProxyOpenFaceAccountRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\FacepayProxyOpenFaceAccountRequestMarshaller::getInstance(),
Model\FacepayProxyOpenFaceAccountResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\FacepayProxyPaySendSmsRequest $request
* @return Model\FacepayProxyPaySendSmsResponse
* @throws YopClientException
*/
public function facepayProxyPaySendSms(Model\FacepayProxyPaySendSmsRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\FacepayProxyPaySendSmsRequestMarshaller::getInstance(),
Model\FacepayProxyPaySendSmsResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\FacepayProxyQueryBindCardInfoRequest $request
* @return Model\FacepayProxyQueryBindCardInfoResponse
* @throws YopClientException
*/
public function facepayProxyQueryBindCardInfo(Model\FacepayProxyQueryBindCardInfoRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\FacepayProxyQueryBindCardInfoRequestMarshaller::getInstance(),
Model\FacepayProxyQueryBindCardInfoResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\FacepayProxyQueryOrderAfterRequest $request
* @return Model\FacepayProxyQueryOrderAfterResponse
* @throws YopClientException
*/
public function facepayProxyQueryOrderAfter(Model\FacepayProxyQueryOrderAfterRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\FacepayProxyQueryOrderAfterRequestMarshaller::getInstance(),
Model\FacepayProxyQueryOrderAfterResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\FacepayProxyQueryOrderBeforeRequest $request
* @return Model\FacepayProxyQueryOrderBeforeResponse
* @throws YopClientException
*/
public function facepayProxyQueryOrderBefore(Model\FacepayProxyQueryOrderBeforeRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
if ($request->getBody() == null) {
throw new YopClientException("request.body is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\FacepayProxyQueryOrderBeforeRequestMarshaller::getInstance(),
Model\FacepayProxyQueryOrderBeforeResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\FacepayProxySendFirstCardSmscodeRequest $request
* @return Model\FacepayProxySendFirstCardSmscodeResponse
* @throws YopClientException
*/
public function facepayProxySendFirstCardSmscode(Model\FacepayProxySendFirstCardSmscodeRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\FacepayProxySendFirstCardSmscodeRequestMarshaller::getInstance(),
Model\FacepayProxySendFirstCardSmscodeResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\FacepayProxySendLogonSmscodeRequest $request
* @return Model\FacepayProxySendLogonSmscodeResponse
* @throws YopClientException
*/
public function facepayProxySendLogonSmscode(Model\FacepayProxySendLogonSmscodeRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\FacepayProxySendLogonSmscodeRequestMarshaller::getInstance(),
Model\FacepayProxySendLogonSmscodeResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\FacepayProxySendVerifySmscodeRequest $request
* @return Model\FacepayProxySendVerifySmscodeResponse
* @throws YopClientException
*/
public function facepayProxySendVerifySmscode(Model\FacepayProxySendVerifySmscodeRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\FacepayProxySendVerifySmscodeRequestMarshaller::getInstance(),
Model\FacepayProxySendVerifySmscodeResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\FacepayProxyVerifyUserInfoRequest $request
* @return Model\FacepayProxyVerifyUserInfoResponse
* @throws YopClientException
*/
public function facepayProxyVerifyUserInfo(Model\FacepayProxyVerifyUserInfoRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\FacepayProxyVerifyUserInfoRequestMarshaller::getInstance(),
Model\FacepayProxyVerifyUserInfoResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\OAuth2TokenGenerateTokenRequest $request
* @return Model\OAuth2TokenGenerateTokenResponse
* @throws YopClientException
*/
public function oAuth2TokenGenerateToken(Model\OAuth2TokenGenerateTokenRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\OAuth2TokenGenerateTokenRequestMarshaller::getInstance(),
Model\OAuth2TokenGenerateTokenResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\SosDeleteBindNoRequest $request
* @return Model\SosDeleteBindNoResponse
* @throws YopClientException
*/
public function sosDeleteBindNo(Model\SosDeleteBindNoRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\SosDeleteBindNoRequestMarshaller::getInstance(),
Model\SosDeleteBindNoResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
}

View File

@@ -0,0 +1,70 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay;
use Yeepay\Yop\Sdk\Auth\AuthorityReqRegistryImpl;
use Yeepay\Yop\Sdk\Auth\AuthorizationReqRegistry;
use Yeepay\Yop\Sdk\Auth\AuthorizationReqSupport;
use Yeepay\Yop\Sdk\Client\ClientParams;
use Yeepay\Yop\Sdk\Client\Support\ClientParamsSupport;
use Yeepay\Yop\Sdk\Config\AppSdkConfig;
use Yeepay\Yop\Sdk\Config\AppSdkConfigProvider;
use Yeepay\Yop\Sdk\Config\DefaultAppSdkConfigProvider;
use Yeepay\Yop\Sdk\Exception\YopClientException;
class FacepayClientBuilder
{
/**
* @var AuthorizationReqRegistry
*/
private static $authorizationReqRegistry;
public static function __init()
{
self::$authorizationReqRegistry = new AuthorityReqRegistryImpl();
self::$authorizationReqRegistry->register('oAuth2TokenGenerateToken',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
}
/**
* @var ClientParams
*/
private $clientParams;
/**
* FacepayClientBuilder constructor.
* @param ClientParams $clientParams
*/
public function __construct(ClientParams $clientParams)
{
$this->clientParams = $clientParams;
}
public function build()
{
return new FacepayClient($this->clientParams);
}
/**
* @param $config AppSdkConfig|array|AppSdkConfigProvider
* @return FacepayClientBuilder
* @throws YopClientException
*/
public static function builder($config)
{
$appSdkConfigProvider = null;
if ($config instanceof AppSdkConfigProvider) {
$appSdkConfigProvider = $config;
} else {
$appSdkConfigProvider = new DefaultAppSdkConfigProvider($config);
}
$clientParams = ClientParamsSupport::generateClientParams($appSdkConfigProvider);
$clientParams->setAuthorizationReqRegistry(self::$authorizationReqRegistry);
return new FacepayClientBuilder($clientParams);
}
}
FacepayClientBuilder::__init();

View File

@@ -0,0 +1,244 @@
<?php
/**
* FacepayProxyBindConfirmSmsBindCardResponseResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 刷脸付
* <p>Facepay是一款部署在支付公司的应用内刷脸支付产品用于代替现有的H5形态的快捷支付产品、以刷脸技术来代替短信验证啊技术在app环境中提供安全快捷不可抵赖的支付体验。</p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FacepayProxyBindConfirmSmsBindCardResponseResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class FacepayProxyBindConfirmSmsBindCardResponseResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'FacepayProxyBindConfirmSmsBindCardResponseResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,197 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class FacepayProxyBindConfirmSmsRequest extends BaseRequest
{
/**
* @var string
*/
private $bindBizNo;
/**
* @var string
*/
private $smsCode;
/**
* @var string
*/
private $bizNo;
/**
* @var string
*/
private $bizToken;
/**
* @var string
*/
private $bizSystem;
/**
* @var string
*/
private $mtToken;
/**
* @var string
*/
private $memberNo;
/**
* Gets bindBizNo
* @return string
*/
public function getBindBizNo()
{
return $this->bindBizNo;
}
/**
* Sets bindBizNo
* @param string $bindBizNo
* @return FacepayProxyBindConfirmSmsRequest
*/
public function setBindBizNo($bindBizNo)
{
$this->bindBizNo = $bindBizNo;
return $this;
}
/**
* Gets smsCode
* @return string
*/
public function getSmsCode()
{
return $this->smsCode;
}
/**
* Sets smsCode
* @param string $smsCode
* @return FacepayProxyBindConfirmSmsRequest
*/
public function setSmsCode($smsCode)
{
$this->smsCode = $smsCode;
return $this;
}
/**
* Gets bizNo
* @return string
*/
public function getBizNo()
{
return $this->bizNo;
}
/**
* Sets bizNo
* @param string $bizNo
* @return FacepayProxyBindConfirmSmsRequest
*/
public function setBizNo($bizNo)
{
$this->bizNo = $bizNo;
return $this;
}
/**
* Gets bizToken
* @return string
*/
public function getBizToken()
{
return $this->bizToken;
}
/**
* Sets bizToken
* @param string $bizToken
* @return FacepayProxyBindConfirmSmsRequest
*/
public function setBizToken($bizToken)
{
$this->bizToken = $bizToken;
return $this;
}
/**
* Gets bizSystem
* @return string
*/
public function getBizSystem()
{
return $this->bizSystem;
}
/**
* Sets bizSystem
* @param string $bizSystem
* @return FacepayProxyBindConfirmSmsRequest
*/
public function setBizSystem($bizSystem)
{
$this->bizSystem = $bizSystem;
return $this;
}
/**
* Gets mtToken
* @return string
*/
public function getMtToken()
{
return $this->mtToken;
}
/**
* Sets mtToken
* @param string $mtToken
* @return FacepayProxyBindConfirmSmsRequest
*/
public function setMtToken($mtToken)
{
$this->mtToken = $mtToken;
return $this;
}
/**
* Gets memberNo
* @return string
*/
public function getMemberNo()
{
return $this->memberNo;
}
/**
* Sets memberNo
* @param string $memberNo
* @return FacepayProxyBindConfirmSmsRequest
*/
public function setMemberNo($memberNo)
{
$this->memberNo = $memberNo;
return $this;
}
public static function getOperationId()
{
return 'facepayProxyBindConfirmSms';
}
}

View File

@@ -0,0 +1,105 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class FacepayProxyBindConfirmSmsRequestMarshaller implements RequestMarshaller
{
/**
* @var FacepayProxyBindConfirmSmsRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FacepayProxyBindConfirmSmsRequestMarshaller();
}
/**
* @return FacepayProxyBindConfirmSmsRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Facepay';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/facepay/facepay-proxy/bind-confirm-sms';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param FacepayProxyBindConfirmSmsRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getBindBizNo() != null) {
$internalRequest->addParameter('bindBizNo',
ObjectSerializer::sanitizeForSerialization($request->getBindBizNo(), 'string'));
}
if ($request->getSmsCode() != null) {
$internalRequest->addParameter('smsCode',
ObjectSerializer::sanitizeForSerialization($request->getSmsCode(), 'string'));
}
if ($request->getBizNo() != null) {
$internalRequest->addParameter('bizNo',
ObjectSerializer::sanitizeForSerialization($request->getBizNo(), 'string'));
}
if ($request->getBizToken() != null) {
$internalRequest->addParameter('bizToken',
ObjectSerializer::sanitizeForSerialization($request->getBizToken(), 'string'));
}
if ($request->getBizSystem() != null) {
$internalRequest->addParameter('bizSystem',
ObjectSerializer::sanitizeForSerialization($request->getBizSystem(), 'string'));
}
if ($request->getMtToken() != null) {
$internalRequest->addParameter('mtToken',
ObjectSerializer::sanitizeForSerialization($request->getMtToken(), 'string'));
}
if ($request->getMemberNo() != null) {
$internalRequest->addParameter('memberNo',
ObjectSerializer::sanitizeForSerialization($request->getMemberNo(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
FacepayProxyBindConfirmSmsRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,244 @@
<?php
/**
* FacepayProxyBindFirstCardBindCardResponseResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 刷脸付
* <p>Facepay是一款部署在支付公司的应用内刷脸支付产品用于代替现有的H5形态的快捷支付产品、以刷脸技术来代替短信验证啊技术在app环境中提供安全快捷不可抵赖的支付体验。</p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FacepayProxyBindFirstCardBindCardResponseResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class FacepayProxyBindFirstCardBindCardResponseResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'FacepayProxyBindFirstCardBindCardResponseResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,249 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class FacepayProxyBindFirstCardRequest extends BaseRequest
{
/**
* @var string
*/
private $bankCardNo;
/**
* @var string
*/
private $phoneNumber;
/**
* @var string
*/
private $cvv2;
/**
* @var string
*/
private $expireDate;
/**
* @var string
*/
private $bizNo;
/**
* @var string
*/
private $bizToken;
/**
* @var string
*/
private $bizSystem;
/**
* @var string
*/
private $mtToken;
/**
* @var string
*/
private $memberNo;
/**
* Gets bankCardNo
* @return string
*/
public function getBankCardNo()
{
return $this->bankCardNo;
}
/**
* Sets bankCardNo
* @param string $bankCardNo
* @return FacepayProxyBindFirstCardRequest
*/
public function setBankCardNo($bankCardNo)
{
$this->bankCardNo = $bankCardNo;
return $this;
}
/**
* Gets phoneNumber
* @return string
*/
public function getPhoneNumber()
{
return $this->phoneNumber;
}
/**
* Sets phoneNumber
* @param string $phoneNumber
* @return FacepayProxyBindFirstCardRequest
*/
public function setPhoneNumber($phoneNumber)
{
$this->phoneNumber = $phoneNumber;
return $this;
}
/**
* Gets cvv2
* @return string
*/
public function getCvv2()
{
return $this->cvv2;
}
/**
* Sets cvv2
* @param string $cvv2
* @return FacepayProxyBindFirstCardRequest
*/
public function setCvv2($cvv2)
{
$this->cvv2 = $cvv2;
return $this;
}
/**
* Gets expireDate
* @return string
*/
public function getExpireDate()
{
return $this->expireDate;
}
/**
* Sets expireDate
* @param string $expireDate
* @return FacepayProxyBindFirstCardRequest
*/
public function setExpireDate($expireDate)
{
$this->expireDate = $expireDate;
return $this;
}
/**
* Gets bizNo
* @return string
*/
public function getBizNo()
{
return $this->bizNo;
}
/**
* Sets bizNo
* @param string $bizNo
* @return FacepayProxyBindFirstCardRequest
*/
public function setBizNo($bizNo)
{
$this->bizNo = $bizNo;
return $this;
}
/**
* Gets bizToken
* @return string
*/
public function getBizToken()
{
return $this->bizToken;
}
/**
* Sets bizToken
* @param string $bizToken
* @return FacepayProxyBindFirstCardRequest
*/
public function setBizToken($bizToken)
{
$this->bizToken = $bizToken;
return $this;
}
/**
* Gets bizSystem
* @return string
*/
public function getBizSystem()
{
return $this->bizSystem;
}
/**
* Sets bizSystem
* @param string $bizSystem
* @return FacepayProxyBindFirstCardRequest
*/
public function setBizSystem($bizSystem)
{
$this->bizSystem = $bizSystem;
return $this;
}
/**
* Gets mtToken
* @return string
*/
public function getMtToken()
{
return $this->mtToken;
}
/**
* Sets mtToken
* @param string $mtToken
* @return FacepayProxyBindFirstCardRequest
*/
public function setMtToken($mtToken)
{
$this->mtToken = $mtToken;
return $this;
}
/**
* Gets memberNo
* @return string
*/
public function getMemberNo()
{
return $this->memberNo;
}
/**
* Sets memberNo
* @param string $memberNo
* @return FacepayProxyBindFirstCardRequest
*/
public function setMemberNo($memberNo)
{
$this->memberNo = $memberNo;
return $this;
}
public static function getOperationId()
{
return 'facepayProxyBindFirstCard';
}
}

View File

@@ -0,0 +1,113 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class FacepayProxyBindFirstCardRequestMarshaller implements RequestMarshaller
{
/**
* @var FacepayProxyBindFirstCardRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FacepayProxyBindFirstCardRequestMarshaller();
}
/**
* @return FacepayProxyBindFirstCardRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Facepay';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/facepay/facepay-proxy/bind-first-card';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param FacepayProxyBindFirstCardRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getBankCardNo() != null) {
$internalRequest->addParameter('bankCardNo',
ObjectSerializer::sanitizeForSerialization($request->getBankCardNo(), 'string'));
}
if ($request->getPhoneNumber() != null) {
$internalRequest->addParameter('phoneNumber',
ObjectSerializer::sanitizeForSerialization($request->getPhoneNumber(), 'string'));
}
if ($request->getCvv2() != null) {
$internalRequest->addParameter('cvv2',
ObjectSerializer::sanitizeForSerialization($request->getCvv2(), 'string'));
}
if ($request->getExpireDate() != null) {
$internalRequest->addParameter('expireDate',
ObjectSerializer::sanitizeForSerialization($request->getExpireDate(), 'string'));
}
if ($request->getBizNo() != null) {
$internalRequest->addParameter('bizNo',
ObjectSerializer::sanitizeForSerialization($request->getBizNo(), 'string'));
}
if ($request->getBizToken() != null) {
$internalRequest->addParameter('bizToken',
ObjectSerializer::sanitizeForSerialization($request->getBizToken(), 'string'));
}
if ($request->getBizSystem() != null) {
$internalRequest->addParameter('bizSystem',
ObjectSerializer::sanitizeForSerialization($request->getBizSystem(), 'string'));
}
if ($request->getMtToken() != null) {
$internalRequest->addParameter('mtToken',
ObjectSerializer::sanitizeForSerialization($request->getMtToken(), 'string'));
}
if ($request->getMemberNo() != null) {
$internalRequest->addParameter('memberNo',
ObjectSerializer::sanitizeForSerialization($request->getMemberNo(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
FacepayProxyBindFirstCardRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,244 @@
<?php
/**
* FacepayProxyBindSendSmsBindCardResponseResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 刷脸付
* <p>Facepay是一款部署在支付公司的应用内刷脸支付产品用于代替现有的H5形态的快捷支付产品、以刷脸技术来代替短信验证啊技术在app环境中提供安全快捷不可抵赖的支付体验。</p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FacepayProxyBindSendSmsBindCardResponseResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class FacepayProxyBindSendSmsBindCardResponseResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'FacepayProxyBindSendSmsBindCardResponseResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,171 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class FacepayProxyBindSendSmsRequest extends BaseRequest
{
/**
* @var string
*/
private $bindBizNo;
/**
* @var string
*/
private $bizNo;
/**
* @var string
*/
private $bizToken;
/**
* @var string
*/
private $bizSystem;
/**
* @var string
*/
private $mtToken;
/**
* @var string
*/
private $memberNo;
/**
* Gets bindBizNo
* @return string
*/
public function getBindBizNo()
{
return $this->bindBizNo;
}
/**
* Sets bindBizNo
* @param string $bindBizNo
* @return FacepayProxyBindSendSmsRequest
*/
public function setBindBizNo($bindBizNo)
{
$this->bindBizNo = $bindBizNo;
return $this;
}
/**
* Gets bizNo
* @return string
*/
public function getBizNo()
{
return $this->bizNo;
}
/**
* Sets bizNo
* @param string $bizNo
* @return FacepayProxyBindSendSmsRequest
*/
public function setBizNo($bizNo)
{
$this->bizNo = $bizNo;
return $this;
}
/**
* Gets bizToken
* @return string
*/
public function getBizToken()
{
return $this->bizToken;
}
/**
* Sets bizToken
* @param string $bizToken
* @return FacepayProxyBindSendSmsRequest
*/
public function setBizToken($bizToken)
{
$this->bizToken = $bizToken;
return $this;
}
/**
* Gets bizSystem
* @return string
*/
public function getBizSystem()
{
return $this->bizSystem;
}
/**
* Sets bizSystem
* @param string $bizSystem
* @return FacepayProxyBindSendSmsRequest
*/
public function setBizSystem($bizSystem)
{
$this->bizSystem = $bizSystem;
return $this;
}
/**
* Gets mtToken
* @return string
*/
public function getMtToken()
{
return $this->mtToken;
}
/**
* Sets mtToken
* @param string $mtToken
* @return FacepayProxyBindSendSmsRequest
*/
public function setMtToken($mtToken)
{
$this->mtToken = $mtToken;
return $this;
}
/**
* Gets memberNo
* @return string
*/
public function getMemberNo()
{
return $this->memberNo;
}
/**
* Sets memberNo
* @param string $memberNo
* @return FacepayProxyBindSendSmsRequest
*/
public function setMemberNo($memberNo)
{
$this->memberNo = $memberNo;
return $this;
}
public static function getOperationId()
{
return 'facepayProxyBindSendSms';
}
}

View File

@@ -0,0 +1,101 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class FacepayProxyBindSendSmsRequestMarshaller implements RequestMarshaller
{
/**
* @var FacepayProxyBindSendSmsRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FacepayProxyBindSendSmsRequestMarshaller();
}
/**
* @return FacepayProxyBindSendSmsRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Facepay';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/facepay/facepay-proxy/bind-send-sms';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param FacepayProxyBindSendSmsRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getBindBizNo() != null) {
$internalRequest->addParameter('bindBizNo',
ObjectSerializer::sanitizeForSerialization($request->getBindBizNo(), 'string'));
}
if ($request->getBizNo() != null) {
$internalRequest->addParameter('bizNo',
ObjectSerializer::sanitizeForSerialization($request->getBizNo(), 'string'));
}
if ($request->getBizToken() != null) {
$internalRequest->addParameter('bizToken',
ObjectSerializer::sanitizeForSerialization($request->getBizToken(), 'string'));
}
if ($request->getBizSystem() != null) {
$internalRequest->addParameter('bizSystem',
ObjectSerializer::sanitizeForSerialization($request->getBizSystem(), 'string'));
}
if ($request->getMtToken() != null) {
$internalRequest->addParameter('mtToken',
ObjectSerializer::sanitizeForSerialization($request->getMtToken(), 'string'));
}
if ($request->getMemberNo() != null) {
$internalRequest->addParameter('memberNo',
ObjectSerializer::sanitizeForSerialization($request->getMemberNo(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
FacepayProxyBindSendSmsRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,244 @@
<?php
/**
* FacepayProxyCertificateNoAuthFaceLogonResponseResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 刷脸付
* <p>Facepay是一款部署在支付公司的应用内刷脸支付产品用于代替现有的H5形态的快捷支付产品、以刷脸技术来代替短信验证啊技术在app环境中提供安全快捷不可抵赖的支付体验。</p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FacepayProxyCertificateNoAuthFaceLogonResponseResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class FacepayProxyCertificateNoAuthFaceLogonResponseResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'FacepayProxyCertificateNoAuthFaceLogonResponseResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,171 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class FacepayProxyCertificateNoAuthRequest extends BaseRequest
{
/**
* @var string
*/
private $orderToken;
/**
* @var string
*/
private $faceRequestNo;
/**
* @var string
*/
private $certificateNoLastN;
/**
* @var string
*/
private $bizSystem;
/**
* @var string
*/
private $mtToken;
/**
* @var string
*/
private $memberNo;
/**
* Gets orderToken
* @return string
*/
public function getOrderToken()
{
return $this->orderToken;
}
/**
* Sets orderToken
* @param string $orderToken
* @return FacepayProxyCertificateNoAuthRequest
*/
public function setOrderToken($orderToken)
{
$this->orderToken = $orderToken;
return $this;
}
/**
* Gets faceRequestNo
* @return string
*/
public function getFaceRequestNo()
{
return $this->faceRequestNo;
}
/**
* Sets faceRequestNo
* @param string $faceRequestNo
* @return FacepayProxyCertificateNoAuthRequest
*/
public function setFaceRequestNo($faceRequestNo)
{
$this->faceRequestNo = $faceRequestNo;
return $this;
}
/**
* Gets certificateNoLastN
* @return string
*/
public function getCertificateNoLastN()
{
return $this->certificateNoLastN;
}
/**
* Sets certificateNoLastN
* @param string $certificateNoLastN
* @return FacepayProxyCertificateNoAuthRequest
*/
public function setCertificateNoLastN($certificateNoLastN)
{
$this->certificateNoLastN = $certificateNoLastN;
return $this;
}
/**
* Gets bizSystem
* @return string
*/
public function getBizSystem()
{
return $this->bizSystem;
}
/**
* Sets bizSystem
* @param string $bizSystem
* @return FacepayProxyCertificateNoAuthRequest
*/
public function setBizSystem($bizSystem)
{
$this->bizSystem = $bizSystem;
return $this;
}
/**
* Gets mtToken
* @return string
*/
public function getMtToken()
{
return $this->mtToken;
}
/**
* Sets mtToken
* @param string $mtToken
* @return FacepayProxyCertificateNoAuthRequest
*/
public function setMtToken($mtToken)
{
$this->mtToken = $mtToken;
return $this;
}
/**
* Gets memberNo
* @return string
*/
public function getMemberNo()
{
return $this->memberNo;
}
/**
* Sets memberNo
* @param string $memberNo
* @return FacepayProxyCertificateNoAuthRequest
*/
public function setMemberNo($memberNo)
{
$this->memberNo = $memberNo;
return $this;
}
public static function getOperationId()
{
return 'facepayProxyCertificateNoAuth';
}
}

View File

@@ -0,0 +1,101 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class FacepayProxyCertificateNoAuthRequestMarshaller implements RequestMarshaller
{
/**
* @var FacepayProxyCertificateNoAuthRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FacepayProxyCertificateNoAuthRequestMarshaller();
}
/**
* @return FacepayProxyCertificateNoAuthRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Facepay';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/facepay/facepay-proxy/certificate-no-auth';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param FacepayProxyCertificateNoAuthRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getOrderToken() != null) {
$internalRequest->addParameter('orderToken',
ObjectSerializer::sanitizeForSerialization($request->getOrderToken(), 'string'));
}
if ($request->getFaceRequestNo() != null) {
$internalRequest->addParameter('faceRequestNo',
ObjectSerializer::sanitizeForSerialization($request->getFaceRequestNo(), 'string'));
}
if ($request->getCertificateNoLastN() != null) {
$internalRequest->addParameter('certificateNoLastN',
ObjectSerializer::sanitizeForSerialization($request->getCertificateNoLastN(), 'string'));
}
if ($request->getBizSystem() != null) {
$internalRequest->addParameter('bizSystem',
ObjectSerializer::sanitizeForSerialization($request->getBizSystem(), 'string'));
}
if ($request->getMtToken() != null) {
$internalRequest->addParameter('mtToken',
ObjectSerializer::sanitizeForSerialization($request->getMtToken(), 'string'));
}
if ($request->getMemberNo() != null) {
$internalRequest->addParameter('memberNo',
ObjectSerializer::sanitizeForSerialization($request->getMemberNo(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
FacepayProxyCertificateNoAuthRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,244 @@
<?php
/**
* FacepayProxyCheckLogonSmscodeBaseUserResponseResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 刷脸付
* <p>Facepay是一款部署在支付公司的应用内刷脸支付产品用于代替现有的H5形态的快捷支付产品、以刷脸技术来代替短信验证啊技术在app环境中提供安全快捷不可抵赖的支付体验。</p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FacepayProxyCheckLogonSmscodeBaseUserResponseResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class FacepayProxyCheckLogonSmscodeBaseUserResponseResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'FacepayProxyCheckLogonSmscodeBaseUserResponseResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,171 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class FacepayProxyCheckLogonSmscodeRequest extends BaseRequest
{
/**
* @var string
*/
private $orderToken;
/**
* @var string
*/
private $faceRequestNo;
/**
* @var string
*/
private $smsCode;
/**
* @var string
*/
private $bizSystem;
/**
* @var string
*/
private $mtToken;
/**
* @var string
*/
private $memberNo;
/**
* Gets orderToken
* @return string
*/
public function getOrderToken()
{
return $this->orderToken;
}
/**
* Sets orderToken
* @param string $orderToken
* @return FacepayProxyCheckLogonSmscodeRequest
*/
public function setOrderToken($orderToken)
{
$this->orderToken = $orderToken;
return $this;
}
/**
* Gets faceRequestNo
* @return string
*/
public function getFaceRequestNo()
{
return $this->faceRequestNo;
}
/**
* Sets faceRequestNo
* @param string $faceRequestNo
* @return FacepayProxyCheckLogonSmscodeRequest
*/
public function setFaceRequestNo($faceRequestNo)
{
$this->faceRequestNo = $faceRequestNo;
return $this;
}
/**
* Gets smsCode
* @return string
*/
public function getSmsCode()
{
return $this->smsCode;
}
/**
* Sets smsCode
* @param string $smsCode
* @return FacepayProxyCheckLogonSmscodeRequest
*/
public function setSmsCode($smsCode)
{
$this->smsCode = $smsCode;
return $this;
}
/**
* Gets bizSystem
* @return string
*/
public function getBizSystem()
{
return $this->bizSystem;
}
/**
* Sets bizSystem
* @param string $bizSystem
* @return FacepayProxyCheckLogonSmscodeRequest
*/
public function setBizSystem($bizSystem)
{
$this->bizSystem = $bizSystem;
return $this;
}
/**
* Gets mtToken
* @return string
*/
public function getMtToken()
{
return $this->mtToken;
}
/**
* Sets mtToken
* @param string $mtToken
* @return FacepayProxyCheckLogonSmscodeRequest
*/
public function setMtToken($mtToken)
{
$this->mtToken = $mtToken;
return $this;
}
/**
* Gets memberNo
* @return string
*/
public function getMemberNo()
{
return $this->memberNo;
}
/**
* Sets memberNo
* @param string $memberNo
* @return FacepayProxyCheckLogonSmscodeRequest
*/
public function setMemberNo($memberNo)
{
$this->memberNo = $memberNo;
return $this;
}
public static function getOperationId()
{
return 'facepayProxyCheckLogonSmscode';
}
}

View File

@@ -0,0 +1,101 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class FacepayProxyCheckLogonSmscodeRequestMarshaller implements RequestMarshaller
{
/**
* @var FacepayProxyCheckLogonSmscodeRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FacepayProxyCheckLogonSmscodeRequestMarshaller();
}
/**
* @return FacepayProxyCheckLogonSmscodeRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Facepay';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/facepay/facepay-proxy/check-logon-smscode';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param FacepayProxyCheckLogonSmscodeRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getOrderToken() != null) {
$internalRequest->addParameter('orderToken',
ObjectSerializer::sanitizeForSerialization($request->getOrderToken(), 'string'));
}
if ($request->getFaceRequestNo() != null) {
$internalRequest->addParameter('faceRequestNo',
ObjectSerializer::sanitizeForSerialization($request->getFaceRequestNo(), 'string'));
}
if ($request->getSmsCode() != null) {
$internalRequest->addParameter('smsCode',
ObjectSerializer::sanitizeForSerialization($request->getSmsCode(), 'string'));
}
if ($request->getBizSystem() != null) {
$internalRequest->addParameter('bizSystem',
ObjectSerializer::sanitizeForSerialization($request->getBizSystem(), 'string'));
}
if ($request->getMtToken() != null) {
$internalRequest->addParameter('mtToken',
ObjectSerializer::sanitizeForSerialization($request->getMtToken(), 'string'));
}
if ($request->getMemberNo() != null) {
$internalRequest->addParameter('memberNo',
ObjectSerializer::sanitizeForSerialization($request->getMemberNo(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
FacepayProxyCheckLogonSmscodeRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,244 @@
<?php
/**
* FacepayProxyConfirmFirstCardSmscodeBaseResponseResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 刷脸付
* <p>Facepay是一款部署在支付公司的应用内刷脸支付产品用于代替现有的H5形态的快捷支付产品、以刷脸技术来代替短信验证啊技术在app环境中提供安全快捷不可抵赖的支付体验。</p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FacepayProxyConfirmFirstCardSmscodeBaseResponseResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class FacepayProxyConfirmFirstCardSmscodeBaseResponseResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'FacepayProxyConfirmFirstCardSmscodeBaseResponseResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,197 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class FacepayProxyConfirmFirstCardSmscodeRequest extends BaseRequest
{
/**
* @var string
*/
private $bindBizNo;
/**
* @var string
*/
private $smsCode;
/**
* @var string
*/
private $bizNo;
/**
* @var string
*/
private $bizToken;
/**
* @var string
*/
private $bizSystem;
/**
* @var string
*/
private $mtToken;
/**
* @var string
*/
private $memberNo;
/**
* Gets bindBizNo
* @return string
*/
public function getBindBizNo()
{
return $this->bindBizNo;
}
/**
* Sets bindBizNo
* @param string $bindBizNo
* @return FacepayProxyConfirmFirstCardSmscodeRequest
*/
public function setBindBizNo($bindBizNo)
{
$this->bindBizNo = $bindBizNo;
return $this;
}
/**
* Gets smsCode
* @return string
*/
public function getSmsCode()
{
return $this->smsCode;
}
/**
* Sets smsCode
* @param string $smsCode
* @return FacepayProxyConfirmFirstCardSmscodeRequest
*/
public function setSmsCode($smsCode)
{
$this->smsCode = $smsCode;
return $this;
}
/**
* Gets bizNo
* @return string
*/
public function getBizNo()
{
return $this->bizNo;
}
/**
* Sets bizNo
* @param string $bizNo
* @return FacepayProxyConfirmFirstCardSmscodeRequest
*/
public function setBizNo($bizNo)
{
$this->bizNo = $bizNo;
return $this;
}
/**
* Gets bizToken
* @return string
*/
public function getBizToken()
{
return $this->bizToken;
}
/**
* Sets bizToken
* @param string $bizToken
* @return FacepayProxyConfirmFirstCardSmscodeRequest
*/
public function setBizToken($bizToken)
{
$this->bizToken = $bizToken;
return $this;
}
/**
* Gets bizSystem
* @return string
*/
public function getBizSystem()
{
return $this->bizSystem;
}
/**
* Sets bizSystem
* @param string $bizSystem
* @return FacepayProxyConfirmFirstCardSmscodeRequest
*/
public function setBizSystem($bizSystem)
{
$this->bizSystem = $bizSystem;
return $this;
}
/**
* Gets mtToken
* @return string
*/
public function getMtToken()
{
return $this->mtToken;
}
/**
* Sets mtToken
* @param string $mtToken
* @return FacepayProxyConfirmFirstCardSmscodeRequest
*/
public function setMtToken($mtToken)
{
$this->mtToken = $mtToken;
return $this;
}
/**
* Gets memberNo
* @return string
*/
public function getMemberNo()
{
return $this->memberNo;
}
/**
* Sets memberNo
* @param string $memberNo
* @return FacepayProxyConfirmFirstCardSmscodeRequest
*/
public function setMemberNo($memberNo)
{
$this->memberNo = $memberNo;
return $this;
}
public static function getOperationId()
{
return 'facepayProxyConfirmFirstCardSmscode';
}
}

View File

@@ -0,0 +1,105 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class FacepayProxyConfirmFirstCardSmscodeRequestMarshaller implements RequestMarshaller
{
/**
* @var FacepayProxyConfirmFirstCardSmscodeRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FacepayProxyConfirmFirstCardSmscodeRequestMarshaller();
}
/**
* @return FacepayProxyConfirmFirstCardSmscodeRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Facepay';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/facepay/facepay-proxy/confirm-first-card-smscode';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param FacepayProxyConfirmFirstCardSmscodeRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getBindBizNo() != null) {
$internalRequest->addParameter('bindBizNo',
ObjectSerializer::sanitizeForSerialization($request->getBindBizNo(), 'string'));
}
if ($request->getSmsCode() != null) {
$internalRequest->addParameter('smsCode',
ObjectSerializer::sanitizeForSerialization($request->getSmsCode(), 'string'));
}
if ($request->getBizNo() != null) {
$internalRequest->addParameter('bizNo',
ObjectSerializer::sanitizeForSerialization($request->getBizNo(), 'string'));
}
if ($request->getBizToken() != null) {
$internalRequest->addParameter('bizToken',
ObjectSerializer::sanitizeForSerialization($request->getBizToken(), 'string'));
}
if ($request->getBizSystem() != null) {
$internalRequest->addParameter('bizSystem',
ObjectSerializer::sanitizeForSerialization($request->getBizSystem(), 'string'));
}
if ($request->getMtToken() != null) {
$internalRequest->addParameter('mtToken',
ObjectSerializer::sanitizeForSerialization($request->getMtToken(), 'string'));
}
if ($request->getMemberNo() != null) {
$internalRequest->addParameter('memberNo',
ObjectSerializer::sanitizeForSerialization($request->getMemberNo(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
FacepayProxyConfirmFirstCardSmscodeRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,119 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class FacepayProxyConfirmVerifySmscodeRequest extends BaseRequest
{
/**
* @var string
*/
private $smsCode;
/**
* @var string
*/
private $bizSystem;
/**
* @var string
*/
private $mtToken;
/**
* @var string
*/
private $memberNo;
/**
* Gets smsCode
* @return string
*/
public function getSmsCode()
{
return $this->smsCode;
}
/**
* Sets smsCode
* @param string $smsCode
* @return FacepayProxyConfirmVerifySmscodeRequest
*/
public function setSmsCode($smsCode)
{
$this->smsCode = $smsCode;
return $this;
}
/**
* Gets bizSystem
* @return string
*/
public function getBizSystem()
{
return $this->bizSystem;
}
/**
* Sets bizSystem
* @param string $bizSystem
* @return FacepayProxyConfirmVerifySmscodeRequest
*/
public function setBizSystem($bizSystem)
{
$this->bizSystem = $bizSystem;
return $this;
}
/**
* Gets mtToken
* @return string
*/
public function getMtToken()
{
return $this->mtToken;
}
/**
* Sets mtToken
* @param string $mtToken
* @return FacepayProxyConfirmVerifySmscodeRequest
*/
public function setMtToken($mtToken)
{
$this->mtToken = $mtToken;
return $this;
}
/**
* Gets memberNo
* @return string
*/
public function getMemberNo()
{
return $this->memberNo;
}
/**
* Sets memberNo
* @param string $memberNo
* @return FacepayProxyConfirmVerifySmscodeRequest
*/
public function setMemberNo($memberNo)
{
$this->memberNo = $memberNo;
return $this;
}
public static function getOperationId()
{
return 'facepayProxyConfirmVerifySmscode';
}
}

View File

@@ -0,0 +1,93 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class FacepayProxyConfirmVerifySmscodeRequestMarshaller implements RequestMarshaller
{
/**
* @var FacepayProxyConfirmVerifySmscodeRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FacepayProxyConfirmVerifySmscodeRequestMarshaller();
}
/**
* @return FacepayProxyConfirmVerifySmscodeRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Facepay';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/facepay/facepay-proxy/confirm-verify-smscode';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param FacepayProxyConfirmVerifySmscodeRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getSmsCode() != null) {
$internalRequest->addParameter('smsCode',
ObjectSerializer::sanitizeForSerialization($request->getSmsCode(), 'string'));
}
if ($request->getBizSystem() != null) {
$internalRequest->addParameter('bizSystem',
ObjectSerializer::sanitizeForSerialization($request->getBizSystem(), 'string'));
}
if ($request->getMtToken() != null) {
$internalRequest->addParameter('mtToken',
ObjectSerializer::sanitizeForSerialization($request->getMtToken(), 'string'));
}
if ($request->getMemberNo() != null) {
$internalRequest->addParameter('memberNo',
ObjectSerializer::sanitizeForSerialization($request->getMemberNo(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
FacepayProxyConfirmVerifySmscodeRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,244 @@
<?php
/**
* FacepayProxyConfirmVerifySmscodeUserInfoResponseResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 刷脸付
* <p>Facepay是一款部署在支付公司的应用内刷脸支付产品用于代替现有的H5形态的快捷支付产品、以刷脸技术来代替短信验证啊技术在app环境中提供安全快捷不可抵赖的支付体验。</p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FacepayProxyConfirmVerifySmscodeUserInfoResponseResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class FacepayProxyConfirmVerifySmscodeUserInfoResponseResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'FacepayProxyConfirmVerifySmscodeUserInfoResponseResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,244 @@
<?php
/**
* FacepayProxyCreateBindCardBindCardResponseResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 刷脸付
* <p>Facepay是一款部署在支付公司的应用内刷脸支付产品用于代替现有的H5形态的快捷支付产品、以刷脸技术来代替短信验证啊技术在app环境中提供安全快捷不可抵赖的支付体验。</p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FacepayProxyCreateBindCardBindCardResponseResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class FacepayProxyCreateBindCardBindCardResponseResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'FacepayProxyCreateBindCardBindCardResponseResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,249 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class FacepayProxyCreateBindCardRequest extends BaseRequest
{
/**
* @var string
*/
private $bankCardNo;
/**
* @var string
*/
private $phoneNumber;
/**
* @var string
*/
private $cvv2;
/**
* @var string
*/
private $expireDate;
/**
* @var string
*/
private $bizNo;
/**
* @var string
*/
private $bizToken;
/**
* @var string
*/
private $bizSystem;
/**
* @var string
*/
private $mtToken;
/**
* @var string
*/
private $memberNo;
/**
* Gets bankCardNo
* @return string
*/
public function getBankCardNo()
{
return $this->bankCardNo;
}
/**
* Sets bankCardNo
* @param string $bankCardNo
* @return FacepayProxyCreateBindCardRequest
*/
public function setBankCardNo($bankCardNo)
{
$this->bankCardNo = $bankCardNo;
return $this;
}
/**
* Gets phoneNumber
* @return string
*/
public function getPhoneNumber()
{
return $this->phoneNumber;
}
/**
* Sets phoneNumber
* @param string $phoneNumber
* @return FacepayProxyCreateBindCardRequest
*/
public function setPhoneNumber($phoneNumber)
{
$this->phoneNumber = $phoneNumber;
return $this;
}
/**
* Gets cvv2
* @return string
*/
public function getCvv2()
{
return $this->cvv2;
}
/**
* Sets cvv2
* @param string $cvv2
* @return FacepayProxyCreateBindCardRequest
*/
public function setCvv2($cvv2)
{
$this->cvv2 = $cvv2;
return $this;
}
/**
* Gets expireDate
* @return string
*/
public function getExpireDate()
{
return $this->expireDate;
}
/**
* Sets expireDate
* @param string $expireDate
* @return FacepayProxyCreateBindCardRequest
*/
public function setExpireDate($expireDate)
{
$this->expireDate = $expireDate;
return $this;
}
/**
* Gets bizNo
* @return string
*/
public function getBizNo()
{
return $this->bizNo;
}
/**
* Sets bizNo
* @param string $bizNo
* @return FacepayProxyCreateBindCardRequest
*/
public function setBizNo($bizNo)
{
$this->bizNo = $bizNo;
return $this;
}
/**
* Gets bizToken
* @return string
*/
public function getBizToken()
{
return $this->bizToken;
}
/**
* Sets bizToken
* @param string $bizToken
* @return FacepayProxyCreateBindCardRequest
*/
public function setBizToken($bizToken)
{
$this->bizToken = $bizToken;
return $this;
}
/**
* Gets bizSystem
* @return string
*/
public function getBizSystem()
{
return $this->bizSystem;
}
/**
* Sets bizSystem
* @param string $bizSystem
* @return FacepayProxyCreateBindCardRequest
*/
public function setBizSystem($bizSystem)
{
$this->bizSystem = $bizSystem;
return $this;
}
/**
* Gets mtToken
* @return string
*/
public function getMtToken()
{
return $this->mtToken;
}
/**
* Sets mtToken
* @param string $mtToken
* @return FacepayProxyCreateBindCardRequest
*/
public function setMtToken($mtToken)
{
$this->mtToken = $mtToken;
return $this;
}
/**
* Gets memberNo
* @return string
*/
public function getMemberNo()
{
return $this->memberNo;
}
/**
* Sets memberNo
* @param string $memberNo
* @return FacepayProxyCreateBindCardRequest
*/
public function setMemberNo($memberNo)
{
$this->memberNo = $memberNo;
return $this;
}
public static function getOperationId()
{
return 'facepayProxyCreateBindCard';
}
}

View File

@@ -0,0 +1,113 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class FacepayProxyCreateBindCardRequestMarshaller implements RequestMarshaller
{
/**
* @var FacepayProxyCreateBindCardRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FacepayProxyCreateBindCardRequestMarshaller();
}
/**
* @return FacepayProxyCreateBindCardRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Facepay';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/facepay/facepay-proxy/create-bind-card';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param FacepayProxyCreateBindCardRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getBankCardNo() != null) {
$internalRequest->addParameter('bankCardNo',
ObjectSerializer::sanitizeForSerialization($request->getBankCardNo(), 'string'));
}
if ($request->getPhoneNumber() != null) {
$internalRequest->addParameter('phoneNumber',
ObjectSerializer::sanitizeForSerialization($request->getPhoneNumber(), 'string'));
}
if ($request->getCvv2() != null) {
$internalRequest->addParameter('cvv2',
ObjectSerializer::sanitizeForSerialization($request->getCvv2(), 'string'));
}
if ($request->getExpireDate() != null) {
$internalRequest->addParameter('expireDate',
ObjectSerializer::sanitizeForSerialization($request->getExpireDate(), 'string'));
}
if ($request->getBizNo() != null) {
$internalRequest->addParameter('bizNo',
ObjectSerializer::sanitizeForSerialization($request->getBizNo(), 'string'));
}
if ($request->getBizToken() != null) {
$internalRequest->addParameter('bizToken',
ObjectSerializer::sanitizeForSerialization($request->getBizToken(), 'string'));
}
if ($request->getBizSystem() != null) {
$internalRequest->addParameter('bizSystem',
ObjectSerializer::sanitizeForSerialization($request->getBizSystem(), 'string'));
}
if ($request->getMtToken() != null) {
$internalRequest->addParameter('mtToken',
ObjectSerializer::sanitizeForSerialization($request->getMtToken(), 'string'));
}
if ($request->getMemberNo() != null) {
$internalRequest->addParameter('memberNo',
ObjectSerializer::sanitizeForSerialization($request->getMemberNo(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
FacepayProxyCreateBindCardRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,244 @@
<?php
/**
* FacepayProxyCreateOrderPayOrderResponseResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 刷脸付
* <p>Facepay是一款部署在支付公司的应用内刷脸支付产品用于代替现有的H5形态的快捷支付产品、以刷脸技术来代替短信验证啊技术在app环境中提供安全快捷不可抵赖的支付体验。</p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FacepayProxyCreateOrderPayOrderResponseResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class FacepayProxyCreateOrderPayOrderResponseResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'FacepayProxyCreateOrderPayOrderResponseResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,327 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class FacepayProxyCreateOrderRequest extends BaseRequest
{
/**
* @var string
*/
private $orderToken;
/**
* @var string
*/
private $orderAmount;
/**
* @var string
*/
private $uniquePayNo;
/**
* @var string
*/
private $bindBizNo;
/**
* @var string
*/
private $expireDate;
/**
* @var string
*/
private $cvv2;
/**
* @var string
*/
private $smsCode;
/**
* @var string
*/
private $bizNo;
/**
* @var string
*/
private $bizToken;
/**
* @var string
*/
private $bizSystem;
/**
* @var string
*/
private $mtToken;
/**
* @var string
*/
private $memberNo;
/**
* Gets orderToken
* @return string
*/
public function getOrderToken()
{
return $this->orderToken;
}
/**
* Sets orderToken
* @param string $orderToken
* @return FacepayProxyCreateOrderRequest
*/
public function setOrderToken($orderToken)
{
$this->orderToken = $orderToken;
return $this;
}
/**
* Gets orderAmount
* @return string
*/
public function getOrderAmount()
{
return $this->orderAmount;
}
/**
* Sets orderAmount
* @param string $orderAmount
* @return FacepayProxyCreateOrderRequest
*/
public function setOrderAmount($orderAmount)
{
$this->orderAmount = $orderAmount;
return $this;
}
/**
* Gets uniquePayNo
* @return string
*/
public function getUniquePayNo()
{
return $this->uniquePayNo;
}
/**
* Sets uniquePayNo
* @param string $uniquePayNo
* @return FacepayProxyCreateOrderRequest
*/
public function setUniquePayNo($uniquePayNo)
{
$this->uniquePayNo = $uniquePayNo;
return $this;
}
/**
* Gets bindBizNo
* @return string
*/
public function getBindBizNo()
{
return $this->bindBizNo;
}
/**
* Sets bindBizNo
* @param string $bindBizNo
* @return FacepayProxyCreateOrderRequest
*/
public function setBindBizNo($bindBizNo)
{
$this->bindBizNo = $bindBizNo;
return $this;
}
/**
* Gets expireDate
* @return string
*/
public function getExpireDate()
{
return $this->expireDate;
}
/**
* Sets expireDate
* @param string $expireDate
* @return FacepayProxyCreateOrderRequest
*/
public function setExpireDate($expireDate)
{
$this->expireDate = $expireDate;
return $this;
}
/**
* Gets cvv2
* @return string
*/
public function getCvv2()
{
return $this->cvv2;
}
/**
* Sets cvv2
* @param string $cvv2
* @return FacepayProxyCreateOrderRequest
*/
public function setCvv2($cvv2)
{
$this->cvv2 = $cvv2;
return $this;
}
/**
* Gets smsCode
* @return string
*/
public function getSmsCode()
{
return $this->smsCode;
}
/**
* Sets smsCode
* @param string $smsCode
* @return FacepayProxyCreateOrderRequest
*/
public function setSmsCode($smsCode)
{
$this->smsCode = $smsCode;
return $this;
}
/**
* Gets bizNo
* @return string
*/
public function getBizNo()
{
return $this->bizNo;
}
/**
* Sets bizNo
* @param string $bizNo
* @return FacepayProxyCreateOrderRequest
*/
public function setBizNo($bizNo)
{
$this->bizNo = $bizNo;
return $this;
}
/**
* Gets bizToken
* @return string
*/
public function getBizToken()
{
return $this->bizToken;
}
/**
* Sets bizToken
* @param string $bizToken
* @return FacepayProxyCreateOrderRequest
*/
public function setBizToken($bizToken)
{
$this->bizToken = $bizToken;
return $this;
}
/**
* Gets bizSystem
* @return string
*/
public function getBizSystem()
{
return $this->bizSystem;
}
/**
* Sets bizSystem
* @param string $bizSystem
* @return FacepayProxyCreateOrderRequest
*/
public function setBizSystem($bizSystem)
{
$this->bizSystem = $bizSystem;
return $this;
}
/**
* Gets mtToken
* @return string
*/
public function getMtToken()
{
return $this->mtToken;
}
/**
* Sets mtToken
* @param string $mtToken
* @return FacepayProxyCreateOrderRequest
*/
public function setMtToken($mtToken)
{
$this->mtToken = $mtToken;
return $this;
}
/**
* Gets memberNo
* @return string
*/
public function getMemberNo()
{
return $this->memberNo;
}
/**
* Sets memberNo
* @param string $memberNo
* @return FacepayProxyCreateOrderRequest
*/
public function setMemberNo($memberNo)
{
$this->memberNo = $memberNo;
return $this;
}
public static function getOperationId()
{
return 'facepayProxyCreateOrder';
}
}

View File

@@ -0,0 +1,125 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class FacepayProxyCreateOrderRequestMarshaller implements RequestMarshaller
{
/**
* @var FacepayProxyCreateOrderRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FacepayProxyCreateOrderRequestMarshaller();
}
/**
* @return FacepayProxyCreateOrderRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Facepay';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/facepay/facepay-proxy/create-order';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param FacepayProxyCreateOrderRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getOrderToken() != null) {
$internalRequest->addParameter('orderToken',
ObjectSerializer::sanitizeForSerialization($request->getOrderToken(), 'string'));
}
if ($request->getOrderAmount() != null) {
$internalRequest->addParameter('orderAmount',
ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'string'));
}
if ($request->getUniquePayNo() != null) {
$internalRequest->addParameter('uniquePayNo',
ObjectSerializer::sanitizeForSerialization($request->getUniquePayNo(), 'string'));
}
if ($request->getBindBizNo() != null) {
$internalRequest->addParameter('bindBizNo',
ObjectSerializer::sanitizeForSerialization($request->getBindBizNo(), 'string'));
}
if ($request->getExpireDate() != null) {
$internalRequest->addParameter('expireDate',
ObjectSerializer::sanitizeForSerialization($request->getExpireDate(), 'string'));
}
if ($request->getCvv2() != null) {
$internalRequest->addParameter('cvv2',
ObjectSerializer::sanitizeForSerialization($request->getCvv2(), 'string'));
}
if ($request->getSmsCode() != null) {
$internalRequest->addParameter('smsCode',
ObjectSerializer::sanitizeForSerialization($request->getSmsCode(), 'string'));
}
if ($request->getBizNo() != null) {
$internalRequest->addParameter('bizNo',
ObjectSerializer::sanitizeForSerialization($request->getBizNo(), 'string'));
}
if ($request->getBizToken() != null) {
$internalRequest->addParameter('bizToken',
ObjectSerializer::sanitizeForSerialization($request->getBizToken(), 'string'));
}
if ($request->getBizSystem() != null) {
$internalRequest->addParameter('bizSystem',
ObjectSerializer::sanitizeForSerialization($request->getBizSystem(), 'string'));
}
if ($request->getMtToken() != null) {
$internalRequest->addParameter('mtToken',
ObjectSerializer::sanitizeForSerialization($request->getMtToken(), 'string'));
}
if ($request->getMemberNo() != null) {
$internalRequest->addParameter('memberNo',
ObjectSerializer::sanitizeForSerialization($request->getMemberNo(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
FacepayProxyCreateOrderRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,244 @@
<?php
/**
* FacepayProxyFaceLogonFaceLogonResponseResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 刷脸付
* <p>Facepay是一款部署在支付公司的应用内刷脸支付产品用于代替现有的H5形态的快捷支付产品、以刷脸技术来代替短信验证啊技术在app环境中提供安全快捷不可抵赖的支付体验。</p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FacepayProxyFaceLogonFaceLogonResponseResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class FacepayProxyFaceLogonFaceLogonResponseResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'FacepayProxyFaceLogonFaceLogonResponseResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,197 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class FacepayProxyFaceLogonRequest extends BaseRequest
{
/**
* @var string
*/
private $orderToken;
/**
* @var string
*/
private $faceImage;
/**
* @var string
*/
private $collectType;
/**
* @var string
*/
private $collectDevice;
/**
* @var string
*/
private $bizSystem;
/**
* @var string
*/
private $mtToken;
/**
* @var string
*/
private $memberNo;
/**
* Gets orderToken
* @return string
*/
public function getOrderToken()
{
return $this->orderToken;
}
/**
* Sets orderToken
* @param string $orderToken
* @return FacepayProxyFaceLogonRequest
*/
public function setOrderToken($orderToken)
{
$this->orderToken = $orderToken;
return $this;
}
/**
* Gets faceImage
* @return string
*/
public function getFaceImage()
{
return $this->faceImage;
}
/**
* Sets faceImage
* @param string $faceImage
* @return FacepayProxyFaceLogonRequest
*/
public function setFaceImage($faceImage)
{
$this->faceImage = $faceImage;
return $this;
}
/**
* Gets collectType
* @return string
*/
public function getCollectType()
{
return $this->collectType;
}
/**
* Sets collectType
* @param string $collectType
* @return FacepayProxyFaceLogonRequest
*/
public function setCollectType($collectType)
{
$this->collectType = $collectType;
return $this;
}
/**
* Gets collectDevice
* @return string
*/
public function getCollectDevice()
{
return $this->collectDevice;
}
/**
* Sets collectDevice
* @param string $collectDevice
* @return FacepayProxyFaceLogonRequest
*/
public function setCollectDevice($collectDevice)
{
$this->collectDevice = $collectDevice;
return $this;
}
/**
* Gets bizSystem
* @return string
*/
public function getBizSystem()
{
return $this->bizSystem;
}
/**
* Sets bizSystem
* @param string $bizSystem
* @return FacepayProxyFaceLogonRequest
*/
public function setBizSystem($bizSystem)
{
$this->bizSystem = $bizSystem;
return $this;
}
/**
* Gets mtToken
* @return string
*/
public function getMtToken()
{
return $this->mtToken;
}
/**
* Sets mtToken
* @param string $mtToken
* @return FacepayProxyFaceLogonRequest
*/
public function setMtToken($mtToken)
{
$this->mtToken = $mtToken;
return $this;
}
/**
* Gets memberNo
* @return string
*/
public function getMemberNo()
{
return $this->memberNo;
}
/**
* Sets memberNo
* @param string $memberNo
* @return FacepayProxyFaceLogonRequest
*/
public function setMemberNo($memberNo)
{
$this->memberNo = $memberNo;
return $this;
}
public static function getOperationId()
{
return 'facepayProxyFaceLogon';
}
}

View File

@@ -0,0 +1,105 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class FacepayProxyFaceLogonRequestMarshaller implements RequestMarshaller
{
/**
* @var FacepayProxyFaceLogonRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FacepayProxyFaceLogonRequestMarshaller();
}
/**
* @return FacepayProxyFaceLogonRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Facepay';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/facepay/facepay-proxy/face-logon';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param FacepayProxyFaceLogonRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getOrderToken() != null) {
$internalRequest->addParameter('orderToken',
ObjectSerializer::sanitizeForSerialization($request->getOrderToken(), 'string'));
}
if ($request->getFaceImage() != null) {
$internalRequest->addParameter('faceImage',
ObjectSerializer::sanitizeForSerialization($request->getFaceImage(), 'string'));
}
if ($request->getCollectType() != null) {
$internalRequest->addParameter('collectType',
ObjectSerializer::sanitizeForSerialization($request->getCollectType(), 'string'));
}
if ($request->getCollectDevice() != null) {
$internalRequest->addParameter('collectDevice',
ObjectSerializer::sanitizeForSerialization($request->getCollectDevice(), 'string'));
}
if ($request->getBizSystem() != null) {
$internalRequest->addParameter('bizSystem',
ObjectSerializer::sanitizeForSerialization($request->getBizSystem(), 'string'));
}
if ($request->getMtToken() != null) {
$internalRequest->addParameter('mtToken',
ObjectSerializer::sanitizeForSerialization($request->getMtToken(), 'string'));
}
if ($request->getMemberNo() != null) {
$internalRequest->addParameter('memberNo',
ObjectSerializer::sanitizeForSerialization($request->getMemberNo(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
FacepayProxyFaceLogonRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,244 @@
<?php
/**
* FacepayProxyOpenFaceAccountBaseUserResponseResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 刷脸付
* <p>Facepay是一款部署在支付公司的应用内刷脸支付产品用于代替现有的H5形态的快捷支付产品、以刷脸技术来代替短信验证啊技术在app环境中提供安全快捷不可抵赖的支付体验。</p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FacepayProxyOpenFaceAccountBaseUserResponseResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class FacepayProxyOpenFaceAccountBaseUserResponseResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'FacepayProxyOpenFaceAccountBaseUserResponseResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,249 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class FacepayProxyOpenFaceAccountRequest extends BaseRequest
{
/**
* @var string
*/
private $faceImageFirst;
/**
* @var string
*/
private $faceImageSecond;
/**
* @var string
*/
private $faceImageThird;
/**
* @var string
*/
private $collectType;
/**
* @var string
*/
private $collectDevice;
/**
* @var string
*/
private $orderToken;
/**
* @var string
*/
private $bizSystem;
/**
* @var string
*/
private $mtToken;
/**
* @var string
*/
private $memberNo;
/**
* Gets faceImageFirst
* @return string
*/
public function getFaceImageFirst()
{
return $this->faceImageFirst;
}
/**
* Sets faceImageFirst
* @param string $faceImageFirst
* @return FacepayProxyOpenFaceAccountRequest
*/
public function setFaceImageFirst($faceImageFirst)
{
$this->faceImageFirst = $faceImageFirst;
return $this;
}
/**
* Gets faceImageSecond
* @return string
*/
public function getFaceImageSecond()
{
return $this->faceImageSecond;
}
/**
* Sets faceImageSecond
* @param string $faceImageSecond
* @return FacepayProxyOpenFaceAccountRequest
*/
public function setFaceImageSecond($faceImageSecond)
{
$this->faceImageSecond = $faceImageSecond;
return $this;
}
/**
* Gets faceImageThird
* @return string
*/
public function getFaceImageThird()
{
return $this->faceImageThird;
}
/**
* Sets faceImageThird
* @param string $faceImageThird
* @return FacepayProxyOpenFaceAccountRequest
*/
public function setFaceImageThird($faceImageThird)
{
$this->faceImageThird = $faceImageThird;
return $this;
}
/**
* Gets collectType
* @return string
*/
public function getCollectType()
{
return $this->collectType;
}
/**
* Sets collectType
* @param string $collectType
* @return FacepayProxyOpenFaceAccountRequest
*/
public function setCollectType($collectType)
{
$this->collectType = $collectType;
return $this;
}
/**
* Gets collectDevice
* @return string
*/
public function getCollectDevice()
{
return $this->collectDevice;
}
/**
* Sets collectDevice
* @param string $collectDevice
* @return FacepayProxyOpenFaceAccountRequest
*/
public function setCollectDevice($collectDevice)
{
$this->collectDevice = $collectDevice;
return $this;
}
/**
* Gets orderToken
* @return string
*/
public function getOrderToken()
{
return $this->orderToken;
}
/**
* Sets orderToken
* @param string $orderToken
* @return FacepayProxyOpenFaceAccountRequest
*/
public function setOrderToken($orderToken)
{
$this->orderToken = $orderToken;
return $this;
}
/**
* Gets bizSystem
* @return string
*/
public function getBizSystem()
{
return $this->bizSystem;
}
/**
* Sets bizSystem
* @param string $bizSystem
* @return FacepayProxyOpenFaceAccountRequest
*/
public function setBizSystem($bizSystem)
{
$this->bizSystem = $bizSystem;
return $this;
}
/**
* Gets mtToken
* @return string
*/
public function getMtToken()
{
return $this->mtToken;
}
/**
* Sets mtToken
* @param string $mtToken
* @return FacepayProxyOpenFaceAccountRequest
*/
public function setMtToken($mtToken)
{
$this->mtToken = $mtToken;
return $this;
}
/**
* Gets memberNo
* @return string
*/
public function getMemberNo()
{
return $this->memberNo;
}
/**
* Sets memberNo
* @param string $memberNo
* @return FacepayProxyOpenFaceAccountRequest
*/
public function setMemberNo($memberNo)
{
$this->memberNo = $memberNo;
return $this;
}
public static function getOperationId()
{
return 'facepayProxyOpenFaceAccount';
}
}

View File

@@ -0,0 +1,113 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class FacepayProxyOpenFaceAccountRequestMarshaller implements RequestMarshaller
{
/**
* @var FacepayProxyOpenFaceAccountRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FacepayProxyOpenFaceAccountRequestMarshaller();
}
/**
* @return FacepayProxyOpenFaceAccountRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Facepay';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/facepay/facepay-proxy/open-face-account';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param FacepayProxyOpenFaceAccountRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getFaceImageFirst() != null) {
$internalRequest->addParameter('faceImageFirst',
ObjectSerializer::sanitizeForSerialization($request->getFaceImageFirst(), 'string'));
}
if ($request->getFaceImageSecond() != null) {
$internalRequest->addParameter('faceImageSecond',
ObjectSerializer::sanitizeForSerialization($request->getFaceImageSecond(), 'string'));
}
if ($request->getFaceImageThird() != null) {
$internalRequest->addParameter('faceImageThird',
ObjectSerializer::sanitizeForSerialization($request->getFaceImageThird(), 'string'));
}
if ($request->getCollectType() != null) {
$internalRequest->addParameter('collectType',
ObjectSerializer::sanitizeForSerialization($request->getCollectType(), 'string'));
}
if ($request->getCollectDevice() != null) {
$internalRequest->addParameter('collectDevice',
ObjectSerializer::sanitizeForSerialization($request->getCollectDevice(), 'string'));
}
if ($request->getOrderToken() != null) {
$internalRequest->addParameter('orderToken',
ObjectSerializer::sanitizeForSerialization($request->getOrderToken(), 'string'));
}
if ($request->getBizSystem() != null) {
$internalRequest->addParameter('bizSystem',
ObjectSerializer::sanitizeForSerialization($request->getBizSystem(), 'string'));
}
if ($request->getMtToken() != null) {
$internalRequest->addParameter('mtToken',
ObjectSerializer::sanitizeForSerialization($request->getMtToken(), 'string'));
}
if ($request->getMemberNo() != null) {
$internalRequest->addParameter('memberNo',
ObjectSerializer::sanitizeForSerialization($request->getMemberNo(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
FacepayProxyOpenFaceAccountRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,244 @@
<?php
/**
* FacepayProxyPaySendSmsBaseUserResponseResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 刷脸付
* <p>Facepay是一款部署在支付公司的应用内刷脸支付产品用于代替现有的H5形态的快捷支付产品、以刷脸技术来代替短信验证啊技术在app环境中提供安全快捷不可抵赖的支付体验。</p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FacepayProxyPaySendSmsBaseUserResponseResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class FacepayProxyPaySendSmsBaseUserResponseResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'FacepayProxyPaySendSmsBaseUserResponseResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,249 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class FacepayProxyPaySendSmsRequest extends BaseRequest
{
/**
* @var string
*/
private $uniquePayNo;
/**
* @var string
*/
private $bindBizNo;
/**
* @var string
*/
private $cvv2;
/**
* @var string
*/
private $expireDate;
/**
* @var string
*/
private $bizNo;
/**
* @var string
*/
private $bizToken;
/**
* @var string
*/
private $bizSystem;
/**
* @var string
*/
private $mtToken;
/**
* @var string
*/
private $memberNo;
/**
* Gets uniquePayNo
* @return string
*/
public function getUniquePayNo()
{
return $this->uniquePayNo;
}
/**
* Sets uniquePayNo
* @param string $uniquePayNo
* @return FacepayProxyPaySendSmsRequest
*/
public function setUniquePayNo($uniquePayNo)
{
$this->uniquePayNo = $uniquePayNo;
return $this;
}
/**
* Gets bindBizNo
* @return string
*/
public function getBindBizNo()
{
return $this->bindBizNo;
}
/**
* Sets bindBizNo
* @param string $bindBizNo
* @return FacepayProxyPaySendSmsRequest
*/
public function setBindBizNo($bindBizNo)
{
$this->bindBizNo = $bindBizNo;
return $this;
}
/**
* Gets cvv2
* @return string
*/
public function getCvv2()
{
return $this->cvv2;
}
/**
* Sets cvv2
* @param string $cvv2
* @return FacepayProxyPaySendSmsRequest
*/
public function setCvv2($cvv2)
{
$this->cvv2 = $cvv2;
return $this;
}
/**
* Gets expireDate
* @return string
*/
public function getExpireDate()
{
return $this->expireDate;
}
/**
* Sets expireDate
* @param string $expireDate
* @return FacepayProxyPaySendSmsRequest
*/
public function setExpireDate($expireDate)
{
$this->expireDate = $expireDate;
return $this;
}
/**
* Gets bizNo
* @return string
*/
public function getBizNo()
{
return $this->bizNo;
}
/**
* Sets bizNo
* @param string $bizNo
* @return FacepayProxyPaySendSmsRequest
*/
public function setBizNo($bizNo)
{
$this->bizNo = $bizNo;
return $this;
}
/**
* Gets bizToken
* @return string
*/
public function getBizToken()
{
return $this->bizToken;
}
/**
* Sets bizToken
* @param string $bizToken
* @return FacepayProxyPaySendSmsRequest
*/
public function setBizToken($bizToken)
{
$this->bizToken = $bizToken;
return $this;
}
/**
* Gets bizSystem
* @return string
*/
public function getBizSystem()
{
return $this->bizSystem;
}
/**
* Sets bizSystem
* @param string $bizSystem
* @return FacepayProxyPaySendSmsRequest
*/
public function setBizSystem($bizSystem)
{
$this->bizSystem = $bizSystem;
return $this;
}
/**
* Gets mtToken
* @return string
*/
public function getMtToken()
{
return $this->mtToken;
}
/**
* Sets mtToken
* @param string $mtToken
* @return FacepayProxyPaySendSmsRequest
*/
public function setMtToken($mtToken)
{
$this->mtToken = $mtToken;
return $this;
}
/**
* Gets memberNo
* @return string
*/
public function getMemberNo()
{
return $this->memberNo;
}
/**
* Sets memberNo
* @param string $memberNo
* @return FacepayProxyPaySendSmsRequest
*/
public function setMemberNo($memberNo)
{
$this->memberNo = $memberNo;
return $this;
}
public static function getOperationId()
{
return 'facepayProxyPaySendSms';
}
}

View File

@@ -0,0 +1,113 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class FacepayProxyPaySendSmsRequestMarshaller implements RequestMarshaller
{
/**
* @var FacepayProxyPaySendSmsRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FacepayProxyPaySendSmsRequestMarshaller();
}
/**
* @return FacepayProxyPaySendSmsRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Facepay';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/facepay/facepay-proxy/pay-send-sms';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param FacepayProxyPaySendSmsRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getUniquePayNo() != null) {
$internalRequest->addParameter('uniquePayNo',
ObjectSerializer::sanitizeForSerialization($request->getUniquePayNo(), 'string'));
}
if ($request->getBindBizNo() != null) {
$internalRequest->addParameter('bindBizNo',
ObjectSerializer::sanitizeForSerialization($request->getBindBizNo(), 'string'));
}
if ($request->getCvv2() != null) {
$internalRequest->addParameter('cvv2',
ObjectSerializer::sanitizeForSerialization($request->getCvv2(), 'string'));
}
if ($request->getExpireDate() != null) {
$internalRequest->addParameter('expireDate',
ObjectSerializer::sanitizeForSerialization($request->getExpireDate(), 'string'));
}
if ($request->getBizNo() != null) {
$internalRequest->addParameter('bizNo',
ObjectSerializer::sanitizeForSerialization($request->getBizNo(), 'string'));
}
if ($request->getBizToken() != null) {
$internalRequest->addParameter('bizToken',
ObjectSerializer::sanitizeForSerialization($request->getBizToken(), 'string'));
}
if ($request->getBizSystem() != null) {
$internalRequest->addParameter('bizSystem',
ObjectSerializer::sanitizeForSerialization($request->getBizSystem(), 'string'));
}
if ($request->getMtToken() != null) {
$internalRequest->addParameter('mtToken',
ObjectSerializer::sanitizeForSerialization($request->getMtToken(), 'string'));
}
if ($request->getMemberNo() != null) {
$internalRequest->addParameter('memberNo',
ObjectSerializer::sanitizeForSerialization($request->getMemberNo(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
FacepayProxyPaySendSmsRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,244 @@
<?php
/**
* FacepayProxyQueryBindCardInfoBindCardInfoResponseResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 刷脸付
* <p>Facepay是一款部署在支付公司的应用内刷脸支付产品用于代替现有的H5形态的快捷支付产品、以刷脸技术来代替短信验证啊技术在app环境中提供安全快捷不可抵赖的支付体验。</p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FacepayProxyQueryBindCardInfoBindCardInfoResponseResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class FacepayProxyQueryBindCardInfoBindCardInfoResponseResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'FacepayProxyQueryBindCardInfoBindCardInfoResponseResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,145 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class FacepayProxyQueryBindCardInfoRequest extends BaseRequest
{
/**
* @var string
*/
private $bizNo;
/**
* @var string
*/
private $bizToken;
/**
* @var string
*/
private $bizSystem;
/**
* @var string
*/
private $mtToken;
/**
* @var string
*/
private $memberNo;
/**
* Gets bizNo
* @return string
*/
public function getBizNo()
{
return $this->bizNo;
}
/**
* Sets bizNo
* @param string $bizNo
* @return FacepayProxyQueryBindCardInfoRequest
*/
public function setBizNo($bizNo)
{
$this->bizNo = $bizNo;
return $this;
}
/**
* Gets bizToken
* @return string
*/
public function getBizToken()
{
return $this->bizToken;
}
/**
* Sets bizToken
* @param string $bizToken
* @return FacepayProxyQueryBindCardInfoRequest
*/
public function setBizToken($bizToken)
{
$this->bizToken = $bizToken;
return $this;
}
/**
* Gets bizSystem
* @return string
*/
public function getBizSystem()
{
return $this->bizSystem;
}
/**
* Sets bizSystem
* @param string $bizSystem
* @return FacepayProxyQueryBindCardInfoRequest
*/
public function setBizSystem($bizSystem)
{
$this->bizSystem = $bizSystem;
return $this;
}
/**
* Gets mtToken
* @return string
*/
public function getMtToken()
{
return $this->mtToken;
}
/**
* Sets mtToken
* @param string $mtToken
* @return FacepayProxyQueryBindCardInfoRequest
*/
public function setMtToken($mtToken)
{
$this->mtToken = $mtToken;
return $this;
}
/**
* Gets memberNo
* @return string
*/
public function getMemberNo()
{
return $this->memberNo;
}
/**
* Sets memberNo
* @param string $memberNo
* @return FacepayProxyQueryBindCardInfoRequest
*/
public function setMemberNo($memberNo)
{
$this->memberNo = $memberNo;
return $this;
}
public static function getOperationId()
{
return 'facepayProxyQueryBindCardInfo';
}
}

View File

@@ -0,0 +1,97 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class FacepayProxyQueryBindCardInfoRequestMarshaller implements RequestMarshaller
{
/**
* @var FacepayProxyQueryBindCardInfoRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FacepayProxyQueryBindCardInfoRequestMarshaller();
}
/**
* @return FacepayProxyQueryBindCardInfoRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Facepay';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/facepay/facepay-proxy/query-bind-card-info';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param FacepayProxyQueryBindCardInfoRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getBizNo() != null) {
$internalRequest->addParameter('bizNo',
ObjectSerializer::sanitizeForSerialization($request->getBizNo(), 'string'));
}
if ($request->getBizToken() != null) {
$internalRequest->addParameter('bizToken',
ObjectSerializer::sanitizeForSerialization($request->getBizToken(), 'string'));
}
if ($request->getBizSystem() != null) {
$internalRequest->addParameter('bizSystem',
ObjectSerializer::sanitizeForSerialization($request->getBizSystem(), 'string'));
}
if ($request->getMtToken() != null) {
$internalRequest->addParameter('mtToken',
ObjectSerializer::sanitizeForSerialization($request->getMtToken(), 'string'));
}
if ($request->getMemberNo() != null) {
$internalRequest->addParameter('memberNo',
ObjectSerializer::sanitizeForSerialization($request->getMemberNo(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
FacepayProxyQueryBindCardInfoRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,244 @@
<?php
/**
* FacepayProxyQueryOrderAfterOrderAfterResponseResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 刷脸付
* <p>Facepay是一款部署在支付公司的应用内刷脸支付产品用于代替现有的H5形态的快捷支付产品、以刷脸技术来代替短信验证啊技术在app环境中提供安全快捷不可抵赖的支付体验。</p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FacepayProxyQueryOrderAfterOrderAfterResponseResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class FacepayProxyQueryOrderAfterOrderAfterResponseResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'FacepayProxyQueryOrderAfterOrderAfterResponseResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,171 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class FacepayProxyQueryOrderAfterRequest extends BaseRequest
{
/**
* @var string
*/
private $orderToken;
/**
* @var string
*/
private $bizNo;
/**
* @var string
*/
private $bizToken;
/**
* @var string
*/
private $bizSystem;
/**
* @var string
*/
private $mtToken;
/**
* @var string
*/
private $memberNo;
/**
* Gets orderToken
* @return string
*/
public function getOrderToken()
{
return $this->orderToken;
}
/**
* Sets orderToken
* @param string $orderToken
* @return FacepayProxyQueryOrderAfterRequest
*/
public function setOrderToken($orderToken)
{
$this->orderToken = $orderToken;
return $this;
}
/**
* Gets bizNo
* @return string
*/
public function getBizNo()
{
return $this->bizNo;
}
/**
* Sets bizNo
* @param string $bizNo
* @return FacepayProxyQueryOrderAfterRequest
*/
public function setBizNo($bizNo)
{
$this->bizNo = $bizNo;
return $this;
}
/**
* Gets bizToken
* @return string
*/
public function getBizToken()
{
return $this->bizToken;
}
/**
* Sets bizToken
* @param string $bizToken
* @return FacepayProxyQueryOrderAfterRequest
*/
public function setBizToken($bizToken)
{
$this->bizToken = $bizToken;
return $this;
}
/**
* Gets bizSystem
* @return string
*/
public function getBizSystem()
{
return $this->bizSystem;
}
/**
* Sets bizSystem
* @param string $bizSystem
* @return FacepayProxyQueryOrderAfterRequest
*/
public function setBizSystem($bizSystem)
{
$this->bizSystem = $bizSystem;
return $this;
}
/**
* Gets mtToken
* @return string
*/
public function getMtToken()
{
return $this->mtToken;
}
/**
* Sets mtToken
* @param string $mtToken
* @return FacepayProxyQueryOrderAfterRequest
*/
public function setMtToken($mtToken)
{
$this->mtToken = $mtToken;
return $this;
}
/**
* Gets memberNo
* @return string
*/
public function getMemberNo()
{
return $this->memberNo;
}
/**
* Sets memberNo
* @param string $memberNo
* @return FacepayProxyQueryOrderAfterRequest
*/
public function setMemberNo($memberNo)
{
$this->memberNo = $memberNo;
return $this;
}
public static function getOperationId()
{
return 'facepayProxyQueryOrderAfter';
}
}

View File

@@ -0,0 +1,101 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class FacepayProxyQueryOrderAfterRequestMarshaller implements RequestMarshaller
{
/**
* @var FacepayProxyQueryOrderAfterRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FacepayProxyQueryOrderAfterRequestMarshaller();
}
/**
* @return FacepayProxyQueryOrderAfterRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Facepay';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/facepay/facepay-proxy/query-order-after';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param FacepayProxyQueryOrderAfterRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getOrderToken() != null) {
$internalRequest->addParameter('orderToken',
ObjectSerializer::sanitizeForSerialization($request->getOrderToken(), 'string'));
}
if ($request->getBizNo() != null) {
$internalRequest->addParameter('bizNo',
ObjectSerializer::sanitizeForSerialization($request->getBizNo(), 'string'));
}
if ($request->getBizToken() != null) {
$internalRequest->addParameter('bizToken',
ObjectSerializer::sanitizeForSerialization($request->getBizToken(), 'string'));
}
if ($request->getBizSystem() != null) {
$internalRequest->addParameter('bizSystem',
ObjectSerializer::sanitizeForSerialization($request->getBizSystem(), 'string'));
}
if ($request->getMtToken() != null) {
$internalRequest->addParameter('mtToken',
ObjectSerializer::sanitizeForSerialization($request->getMtToken(), 'string'));
}
if ($request->getMemberNo() != null) {
$internalRequest->addParameter('memberNo',
ObjectSerializer::sanitizeForSerialization($request->getMemberNo(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
FacepayProxyQueryOrderAfterRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,456 @@
<?php
/**
* FacepayProxyQueryOrderBeforeOrderBeforeRequestParam
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 刷脸付
* <p>Facepay是一款部署在支付公司的应用内刷脸支付产品用于代替现有的H5形态的快捷支付产品、以刷脸技术来代替短信验证啊技术在app环境中提供安全快捷不可抵赖的支付体验。</p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FacepayProxyQueryOrderBeforeOrderBeforeRequestParam Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @description 方法签名第0个参数请自行修改arg0等参数的名字
* @link https://github.com/swagger-api/swagger-codegen
*/
class FacepayProxyQueryOrderBeforeOrderBeforeRequestParam implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'FacepayProxyQueryOrderBeforeOrderBeforeRequestParam';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'bizSystem' => 'string',
'merchantNo' => 'string',
'mtToken' => 'string',
'memberNo' => 'string',
'orderToken' => 'string',
'merchantUserName' => 'string',
'merchantUserIdNo' => 'string',
'merchantUserPhone' => 'string',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'bizSystem' => null,
'merchantNo' => null,
'mtToken' => null,
'memberNo' => null,
'orderToken' => null,
'merchantUserName' => null,
'merchantUserIdNo' => null,
'merchantUserPhone' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'bizSystem' => 'bizSystem',
'merchantNo' => 'merchantNo',
'mtToken' => 'mtToken',
'memberNo' => 'memberNo',
'orderToken' => 'orderToken',
'merchantUserName' => 'merchantUserName',
'merchantUserIdNo' => 'merchantUserIdNo',
'merchantUserPhone' => 'merchantUserPhone',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'bizSystem' => 'setBizSystem',
'merchantNo' => 'setMerchantNo',
'mtToken' => 'setMtToken',
'memberNo' => 'setMemberNo',
'orderToken' => 'setOrderToken',
'merchantUserName' => 'setMerchantUserName',
'merchantUserIdNo' => 'setMerchantUserIdNo',
'merchantUserPhone' => 'setMerchantUserPhone',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'bizSystem' => 'getBizSystem',
'merchantNo' => 'getMerchantNo',
'mtToken' => 'getMtToken',
'memberNo' => 'getMemberNo',
'orderToken' => 'getOrderToken',
'merchantUserName' => 'getMerchantUserName',
'merchantUserIdNo' => 'getMerchantUserIdNo',
'merchantUserPhone' => 'getMerchantUserPhone',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['bizSystem'] = isset($data['bizSystem']) ? $data['bizSystem'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['mtToken'] = isset($data['mtToken']) ? $data['mtToken'] : null;
$this->container['memberNo'] = isset($data['memberNo']) ? $data['memberNo'] : null;
$this->container['orderToken'] = isset($data['orderToken']) ? $data['orderToken'] : null;
$this->container['merchantUserName'] = isset($data['merchantUserName']) ? $data['merchantUserName'] : null;
$this->container['merchantUserIdNo'] = isset($data['merchantUserIdNo']) ? $data['merchantUserIdNo'] : null;
$this->container['merchantUserPhone'] = isset($data['merchantUserPhone']) ? $data['merchantUserPhone'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets bizSystem
* @return string
*/
public function getBizSystem()
{
return $this->container['bizSystem'];
}
/**
* Sets bizSystem
* @param string $bizSystem bizSystem
* @return $this
*/
public function setBizSystem($bizSystem)
{
$this->container['bizSystem'] = $bizSystem;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
* @param string $merchantNo merchantNo
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets mtToken
* @return string
*/
public function getMtToken()
{
return $this->container['mtToken'];
}
/**
* Sets mtToken
* @param string $mtToken mtToken
* @return $this
*/
public function setMtToken($mtToken)
{
$this->container['mtToken'] = $mtToken;
return $this;
}
/**
* Gets memberNo
* @return string
*/
public function getMemberNo()
{
return $this->container['memberNo'];
}
/**
* Sets memberNo
* @param string $memberNo memberNo
* @return $this
*/
public function setMemberNo($memberNo)
{
$this->container['memberNo'] = $memberNo;
return $this;
}
/**
* Gets orderToken
* @return string
*/
public function getOrderToken()
{
return $this->container['orderToken'];
}
/**
* Sets orderToken
* @param string $orderToken orderToken
* @return $this
*/
public function setOrderToken($orderToken)
{
$this->container['orderToken'] = $orderToken;
return $this;
}
/**
* Gets merchantUserName
* @return string
*/
public function getMerchantUserName()
{
return $this->container['merchantUserName'];
}
/**
* Sets merchantUserName
* @param string $merchantUserName merchantUserName
* @return $this
*/
public function setMerchantUserName($merchantUserName)
{
$this->container['merchantUserName'] = $merchantUserName;
return $this;
}
/**
* Gets merchantUserIdNo
* @return string
*/
public function getMerchantUserIdNo()
{
return $this->container['merchantUserIdNo'];
}
/**
* Sets merchantUserIdNo
* @param string $merchantUserIdNo merchantUserIdNo
* @return $this
*/
public function setMerchantUserIdNo($merchantUserIdNo)
{
$this->container['merchantUserIdNo'] = $merchantUserIdNo;
return $this;
}
/**
* Gets merchantUserPhone
* @return string
*/
public function getMerchantUserPhone()
{
return $this->container['merchantUserPhone'];
}
/**
* Sets merchantUserPhone
* @param string $merchantUserPhone merchantUserPhone
* @return $this
*/
public function setMerchantUserPhone($merchantUserPhone)
{
$this->container['merchantUserPhone'] = $merchantUserPhone;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,244 @@
<?php
/**
* FacepayProxyQueryOrderBeforeOrderBeforeResponseResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 刷脸付
* <p>Facepay是一款部署在支付公司的应用内刷脸支付产品用于代替现有的H5形态的快捷支付产品、以刷脸技术来代替短信验证啊技术在app环境中提供安全快捷不可抵赖的支付体验。</p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FacepayProxyQueryOrderBeforeOrderBeforeResponseResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class FacepayProxyQueryOrderBeforeOrderBeforeResponseResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'FacepayProxyQueryOrderBeforeOrderBeforeResponseResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,41 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class FacepayProxyQueryOrderBeforeRequest extends BaseRequest
{
/**
* @var
*/
private $body;
/**
* Gets body
* @return
*/
public function getBody()
{
return $this->body;
}
/**
* Sets body
* @param $body
* @return FacepayProxyQueryOrderBeforeRequest
*/
public function setBody($body)
{
$this->body = $body;
return $this;
}
public static function getOperationId()
{
return 'facepayProxyQueryOrderBefore';
}
}

View File

@@ -0,0 +1,79 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class FacepayProxyQueryOrderBeforeRequestMarshaller implements RequestMarshaller
{
/**
* @var FacepayProxyQueryOrderBeforeRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FacepayProxyQueryOrderBeforeRequestMarshaller();
}
/**
* @return FacepayProxyQueryOrderBeforeRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Facepay';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/facepay/facepay-proxy/query-order-before';
/**
* @var string
*/
private $contentType = 'application/json';
/**
* @param FacepayProxyQueryOrderBeforeRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
$content = \GuzzleHttp\json_encode($request->getBody());
$internalRequest->setContent(\GuzzleHttp\Psr7\stream_for($content));
$internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content));
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
FacepayProxyQueryOrderBeforeRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,244 @@
<?php
/**
* FacepayProxySendFirstCardSmscodeBaseResponseResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 刷脸付
* <p>Facepay是一款部署在支付公司的应用内刷脸支付产品用于代替现有的H5形态的快捷支付产品、以刷脸技术来代替短信验证啊技术在app环境中提供安全快捷不可抵赖的支付体验。</p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FacepayProxySendFirstCardSmscodeBaseResponseResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class FacepayProxySendFirstCardSmscodeBaseResponseResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'FacepayProxySendFirstCardSmscodeBaseResponseResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,171 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class FacepayProxySendFirstCardSmscodeRequest extends BaseRequest
{
/**
* @var string
*/
private $bindBizNo;
/**
* @var string
*/
private $bizNo;
/**
* @var string
*/
private $bizToken;
/**
* @var string
*/
private $bizSystem;
/**
* @var string
*/
private $mtToken;
/**
* @var string
*/
private $memberNo;
/**
* Gets bindBizNo
* @return string
*/
public function getBindBizNo()
{
return $this->bindBizNo;
}
/**
* Sets bindBizNo
* @param string $bindBizNo
* @return FacepayProxySendFirstCardSmscodeRequest
*/
public function setBindBizNo($bindBizNo)
{
$this->bindBizNo = $bindBizNo;
return $this;
}
/**
* Gets bizNo
* @return string
*/
public function getBizNo()
{
return $this->bizNo;
}
/**
* Sets bizNo
* @param string $bizNo
* @return FacepayProxySendFirstCardSmscodeRequest
*/
public function setBizNo($bizNo)
{
$this->bizNo = $bizNo;
return $this;
}
/**
* Gets bizToken
* @return string
*/
public function getBizToken()
{
return $this->bizToken;
}
/**
* Sets bizToken
* @param string $bizToken
* @return FacepayProxySendFirstCardSmscodeRequest
*/
public function setBizToken($bizToken)
{
$this->bizToken = $bizToken;
return $this;
}
/**
* Gets bizSystem
* @return string
*/
public function getBizSystem()
{
return $this->bizSystem;
}
/**
* Sets bizSystem
* @param string $bizSystem
* @return FacepayProxySendFirstCardSmscodeRequest
*/
public function setBizSystem($bizSystem)
{
$this->bizSystem = $bizSystem;
return $this;
}
/**
* Gets mtToken
* @return string
*/
public function getMtToken()
{
return $this->mtToken;
}
/**
* Sets mtToken
* @param string $mtToken
* @return FacepayProxySendFirstCardSmscodeRequest
*/
public function setMtToken($mtToken)
{
$this->mtToken = $mtToken;
return $this;
}
/**
* Gets memberNo
* @return string
*/
public function getMemberNo()
{
return $this->memberNo;
}
/**
* Sets memberNo
* @param string $memberNo
* @return FacepayProxySendFirstCardSmscodeRequest
*/
public function setMemberNo($memberNo)
{
$this->memberNo = $memberNo;
return $this;
}
public static function getOperationId()
{
return 'facepayProxySendFirstCardSmscode';
}
}

View File

@@ -0,0 +1,101 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class FacepayProxySendFirstCardSmscodeRequestMarshaller implements RequestMarshaller
{
/**
* @var FacepayProxySendFirstCardSmscodeRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FacepayProxySendFirstCardSmscodeRequestMarshaller();
}
/**
* @return FacepayProxySendFirstCardSmscodeRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Facepay';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/facepay/facepay-proxy/send-first-card-smscode';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param FacepayProxySendFirstCardSmscodeRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getBindBizNo() != null) {
$internalRequest->addParameter('bindBizNo',
ObjectSerializer::sanitizeForSerialization($request->getBindBizNo(), 'string'));
}
if ($request->getBizNo() != null) {
$internalRequest->addParameter('bizNo',
ObjectSerializer::sanitizeForSerialization($request->getBizNo(), 'string'));
}
if ($request->getBizToken() != null) {
$internalRequest->addParameter('bizToken',
ObjectSerializer::sanitizeForSerialization($request->getBizToken(), 'string'));
}
if ($request->getBizSystem() != null) {
$internalRequest->addParameter('bizSystem',
ObjectSerializer::sanitizeForSerialization($request->getBizSystem(), 'string'));
}
if ($request->getMtToken() != null) {
$internalRequest->addParameter('mtToken',
ObjectSerializer::sanitizeForSerialization($request->getMtToken(), 'string'));
}
if ($request->getMemberNo() != null) {
$internalRequest->addParameter('memberNo',
ObjectSerializer::sanitizeForSerialization($request->getMemberNo(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
FacepayProxySendFirstCardSmscodeRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,244 @@
<?php
/**
* FacepayProxySendLogonSmscodeBaseResponseResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 刷脸付
* <p>Facepay是一款部署在支付公司的应用内刷脸支付产品用于代替现有的H5形态的快捷支付产品、以刷脸技术来代替短信验证啊技术在app环境中提供安全快捷不可抵赖的支付体验。</p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FacepayProxySendLogonSmscodeBaseResponseResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class FacepayProxySendLogonSmscodeBaseResponseResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'FacepayProxySendLogonSmscodeBaseResponseResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,145 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class FacepayProxySendLogonSmscodeRequest extends BaseRequest
{
/**
* @var string
*/
private $bizNo;
/**
* @var string
*/
private $bizToken;
/**
* @var string
*/
private $bizSystem;
/**
* @var string
*/
private $mtToken;
/**
* @var string
*/
private $memberNo;
/**
* Gets bizNo
* @return string
*/
public function getBizNo()
{
return $this->bizNo;
}
/**
* Sets bizNo
* @param string $bizNo
* @return FacepayProxySendLogonSmscodeRequest
*/
public function setBizNo($bizNo)
{
$this->bizNo = $bizNo;
return $this;
}
/**
* Gets bizToken
* @return string
*/
public function getBizToken()
{
return $this->bizToken;
}
/**
* Sets bizToken
* @param string $bizToken
* @return FacepayProxySendLogonSmscodeRequest
*/
public function setBizToken($bizToken)
{
$this->bizToken = $bizToken;
return $this;
}
/**
* Gets bizSystem
* @return string
*/
public function getBizSystem()
{
return $this->bizSystem;
}
/**
* Sets bizSystem
* @param string $bizSystem
* @return FacepayProxySendLogonSmscodeRequest
*/
public function setBizSystem($bizSystem)
{
$this->bizSystem = $bizSystem;
return $this;
}
/**
* Gets mtToken
* @return string
*/
public function getMtToken()
{
return $this->mtToken;
}
/**
* Sets mtToken
* @param string $mtToken
* @return FacepayProxySendLogonSmscodeRequest
*/
public function setMtToken($mtToken)
{
$this->mtToken = $mtToken;
return $this;
}
/**
* Gets memberNo
* @return string
*/
public function getMemberNo()
{
return $this->memberNo;
}
/**
* Sets memberNo
* @param string $memberNo
* @return FacepayProxySendLogonSmscodeRequest
*/
public function setMemberNo($memberNo)
{
$this->memberNo = $memberNo;
return $this;
}
public static function getOperationId()
{
return 'facepayProxySendLogonSmscode';
}
}

View File

@@ -0,0 +1,97 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class FacepayProxySendLogonSmscodeRequestMarshaller implements RequestMarshaller
{
/**
* @var FacepayProxySendLogonSmscodeRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FacepayProxySendLogonSmscodeRequestMarshaller();
}
/**
* @return FacepayProxySendLogonSmscodeRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Facepay';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/facepay/facepay-proxy/send-logon-smscode';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param FacepayProxySendLogonSmscodeRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getBizNo() != null) {
$internalRequest->addParameter('bizNo',
ObjectSerializer::sanitizeForSerialization($request->getBizNo(), 'string'));
}
if ($request->getBizToken() != null) {
$internalRequest->addParameter('bizToken',
ObjectSerializer::sanitizeForSerialization($request->getBizToken(), 'string'));
}
if ($request->getBizSystem() != null) {
$internalRequest->addParameter('bizSystem',
ObjectSerializer::sanitizeForSerialization($request->getBizSystem(), 'string'));
}
if ($request->getMtToken() != null) {
$internalRequest->addParameter('mtToken',
ObjectSerializer::sanitizeForSerialization($request->getMtToken(), 'string'));
}
if ($request->getMemberNo() != null) {
$internalRequest->addParameter('memberNo',
ObjectSerializer::sanitizeForSerialization($request->getMemberNo(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
FacepayProxySendLogonSmscodeRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,244 @@
<?php
/**
* FacepayProxySendVerifySmscodeBaseResponseResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 刷脸付
* <p>Facepay是一款部署在支付公司的应用内刷脸支付产品用于代替现有的H5形态的快捷支付产品、以刷脸技术来代替短信验证啊技术在app环境中提供安全快捷不可抵赖的支付体验。</p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FacepayProxySendVerifySmscodeBaseResponseResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class FacepayProxySendVerifySmscodeBaseResponseResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'FacepayProxySendVerifySmscodeBaseResponseResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,145 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class FacepayProxySendVerifySmscodeRequest extends BaseRequest
{
/**
* @var string
*/
private $bizNo;
/**
* @var string
*/
private $bizToken;
/**
* @var string
*/
private $bizSystem;
/**
* @var string
*/
private $mtToken;
/**
* @var string
*/
private $memberNo;
/**
* Gets bizNo
* @return string
*/
public function getBizNo()
{
return $this->bizNo;
}
/**
* Sets bizNo
* @param string $bizNo
* @return FacepayProxySendVerifySmscodeRequest
*/
public function setBizNo($bizNo)
{
$this->bizNo = $bizNo;
return $this;
}
/**
* Gets bizToken
* @return string
*/
public function getBizToken()
{
return $this->bizToken;
}
/**
* Sets bizToken
* @param string $bizToken
* @return FacepayProxySendVerifySmscodeRequest
*/
public function setBizToken($bizToken)
{
$this->bizToken = $bizToken;
return $this;
}
/**
* Gets bizSystem
* @return string
*/
public function getBizSystem()
{
return $this->bizSystem;
}
/**
* Sets bizSystem
* @param string $bizSystem
* @return FacepayProxySendVerifySmscodeRequest
*/
public function setBizSystem($bizSystem)
{
$this->bizSystem = $bizSystem;
return $this;
}
/**
* Gets mtToken
* @return string
*/
public function getMtToken()
{
return $this->mtToken;
}
/**
* Sets mtToken
* @param string $mtToken
* @return FacepayProxySendVerifySmscodeRequest
*/
public function setMtToken($mtToken)
{
$this->mtToken = $mtToken;
return $this;
}
/**
* Gets memberNo
* @return string
*/
public function getMemberNo()
{
return $this->memberNo;
}
/**
* Sets memberNo
* @param string $memberNo
* @return FacepayProxySendVerifySmscodeRequest
*/
public function setMemberNo($memberNo)
{
$this->memberNo = $memberNo;
return $this;
}
public static function getOperationId()
{
return 'facepayProxySendVerifySmscode';
}
}

View File

@@ -0,0 +1,97 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class FacepayProxySendVerifySmscodeRequestMarshaller implements RequestMarshaller
{
/**
* @var FacepayProxySendVerifySmscodeRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FacepayProxySendVerifySmscodeRequestMarshaller();
}
/**
* @return FacepayProxySendVerifySmscodeRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Facepay';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/facepay/facepay-proxy/send-verify-smscode';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param FacepayProxySendVerifySmscodeRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getBizNo() != null) {
$internalRequest->addParameter('bizNo',
ObjectSerializer::sanitizeForSerialization($request->getBizNo(), 'string'));
}
if ($request->getBizToken() != null) {
$internalRequest->addParameter('bizToken',
ObjectSerializer::sanitizeForSerialization($request->getBizToken(), 'string'));
}
if ($request->getBizSystem() != null) {
$internalRequest->addParameter('bizSystem',
ObjectSerializer::sanitizeForSerialization($request->getBizSystem(), 'string'));
}
if ($request->getMtToken() != null) {
$internalRequest->addParameter('mtToken',
ObjectSerializer::sanitizeForSerialization($request->getMtToken(), 'string'));
}
if ($request->getMemberNo() != null) {
$internalRequest->addParameter('memberNo',
ObjectSerializer::sanitizeForSerialization($request->getMemberNo(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
FacepayProxySendVerifySmscodeRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,145 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class FacepayProxyVerifyUserInfoRequest extends BaseRequest
{
/**
* @var string
*/
private $name;
/**
* @var string
*/
private $certificateNo;
/**
* @var string
*/
private $bizSystem;
/**
* @var string
*/
private $mtToken;
/**
* @var string
*/
private $memberNo;
/**
* Gets name
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Sets name
* @param string $name
* @return FacepayProxyVerifyUserInfoRequest
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Gets certificateNo
* @return string
*/
public function getCertificateNo()
{
return $this->certificateNo;
}
/**
* Sets certificateNo
* @param string $certificateNo
* @return FacepayProxyVerifyUserInfoRequest
*/
public function setCertificateNo($certificateNo)
{
$this->certificateNo = $certificateNo;
return $this;
}
/**
* Gets bizSystem
* @return string
*/
public function getBizSystem()
{
return $this->bizSystem;
}
/**
* Sets bizSystem
* @param string $bizSystem
* @return FacepayProxyVerifyUserInfoRequest
*/
public function setBizSystem($bizSystem)
{
$this->bizSystem = $bizSystem;
return $this;
}
/**
* Gets mtToken
* @return string
*/
public function getMtToken()
{
return $this->mtToken;
}
/**
* Sets mtToken
* @param string $mtToken
* @return FacepayProxyVerifyUserInfoRequest
*/
public function setMtToken($mtToken)
{
$this->mtToken = $mtToken;
return $this;
}
/**
* Gets memberNo
* @return string
*/
public function getMemberNo()
{
return $this->memberNo;
}
/**
* Sets memberNo
* @param string $memberNo
* @return FacepayProxyVerifyUserInfoRequest
*/
public function setMemberNo($memberNo)
{
$this->memberNo = $memberNo;
return $this;
}
public static function getOperationId()
{
return 'facepayProxyVerifyUserInfo';
}
}

View File

@@ -0,0 +1,97 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class FacepayProxyVerifyUserInfoRequestMarshaller implements RequestMarshaller
{
/**
* @var FacepayProxyVerifyUserInfoRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new FacepayProxyVerifyUserInfoRequestMarshaller();
}
/**
* @return FacepayProxyVerifyUserInfoRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Facepay';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/facepay/facepay-proxy/verify-user-info';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param FacepayProxyVerifyUserInfoRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getName() != null) {
$internalRequest->addParameter('name',
ObjectSerializer::sanitizeForSerialization($request->getName(), 'string'));
}
if ($request->getCertificateNo() != null) {
$internalRequest->addParameter('certificateNo',
ObjectSerializer::sanitizeForSerialization($request->getCertificateNo(), 'string'));
}
if ($request->getBizSystem() != null) {
$internalRequest->addParameter('bizSystem',
ObjectSerializer::sanitizeForSerialization($request->getBizSystem(), 'string'));
}
if ($request->getMtToken() != null) {
$internalRequest->addParameter('mtToken',
ObjectSerializer::sanitizeForSerialization($request->getMtToken(), 'string'));
}
if ($request->getMemberNo() != null) {
$internalRequest->addParameter('memberNo',
ObjectSerializer::sanitizeForSerialization($request->getMemberNo(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
FacepayProxyVerifyUserInfoRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,244 @@
<?php
/**
* FacepayProxyVerifyUserInfoUserInfoResponseResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 刷脸付
* <p>Facepay是一款部署在支付公司的应用内刷脸支付产品用于代替现有的H5形态的快捷支付产品、以刷脸技术来代替短信验证啊技术在app环境中提供安全快捷不可抵赖的支付体验。</p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* FacepayProxyVerifyUserInfoUserInfoResponseResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class FacepayProxyVerifyUserInfoUserInfoResponseResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'FacepayProxyVerifyUserInfoUserInfoResponseResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,374 @@
<?php
/**
* OAuth2TokenGenerateTokenOAuth2TokenResponseResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 刷脸付
* <p>Facepay是一款部署在支付公司的应用内刷脸支付产品用于代替现有的H5形态的快捷支付产品、以刷脸技术来代替短信验证啊技术在app环境中提供安全快捷不可抵赖的支付体验。</p>
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* OAuth2TokenGenerateTokenOAuth2TokenResponseResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class OAuth2TokenGenerateTokenOAuth2TokenResponseResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'OAuth2TokenGenerateTokenOAuth2TokenResponseResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'acctoken' => 'string',
'expiresIn' => 'int',
'expiration' => 'string',
'merchantNo' => 'string',
'code' => 'string',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'acctoken' => null,
'expiresIn' => 'int32',
'expiration' => 'date-time',
'merchantNo' => null,
'code' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'acctoken' => 'acctoken',
'expiresIn' => 'expiresIn',
'expiration' => 'expiration',
'merchantNo' => 'merchantNo',
'code' => 'code',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'acctoken' => 'setAcctoken',
'expiresIn' => 'setExpiresIn',
'expiration' => 'setExpiration',
'merchantNo' => 'setMerchantNo',
'code' => 'setCode',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'acctoken' => 'getAcctoken',
'expiresIn' => 'getExpiresIn',
'expiration' => 'getExpiration',
'merchantNo' => 'getMerchantNo',
'code' => 'getCode',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['acctoken'] = isset($data['acctoken']) ? $data['acctoken'] : null;
$this->container['expiresIn'] = isset($data['expiresIn']) ? $data['expiresIn'] : null;
$this->container['expiration'] = isset($data['expiration']) ? $data['expiration'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets acctoken
* @return string
*/
public function getAcctoken()
{
return $this->container['acctoken'];
}
/**
* Sets acctoken
* @param string $acctoken 未命名
* @return $this
*/
public function setAcctoken($acctoken)
{
$this->container['acctoken'] = $acctoken;
return $this;
}
/**
* Gets expiresIn
* @return int
*/
public function getExpiresIn()
{
return $this->container['expiresIn'];
}
/**
* Sets expiresIn
* @param int $expiresIn 未命名
* @return $this
*/
public function setExpiresIn($expiresIn)
{
$this->container['expiresIn'] = $expiresIn;
return $this;
}
/**
* Gets expiration
* @return string
*/
public function getExpiration()
{
return $this->container['expiration'];
}
/**
* Sets expiration
* @param string $expiration 未命名
* @return $this
*/
public function setExpiration($expiration)
{
$this->container['expiration'] = $expiration;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
* @param string $merchantNo 未命名
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets code
* @return string
*/
public function getCode()
{
return $this->container['code'];
}
/**
* Sets code
* @param string $code 未命名
* @return $this
*/
public function setCode($code)
{
$this->container['code'] = $code;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,41 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Facepay\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class OAuth2TokenGenerateTokenRequest extends BaseRequest
{
/**
* @var string
*/
private $userId;
/**
* Gets userId
* @return string
*/
public function getUserId()
{
return $this->userId;
}
/**
* Sets userId
* @param string $userId
* @return OAuth2TokenGenerateTokenRequest
*/
public function setUserId($userId)
{
$this->userId = $userId;
return $this;
}
public static function getOperationId()
{
return 'oAuth2TokenGenerateToken';
}
}

Some files were not shown because too many files have changed in this diff Show More