first commit
This commit is contained in:
324
lib/Service/Frontcashier/FrontcashierClient.php
Normal file
324
lib/Service/Frontcashier/FrontcashierClient.php
Normal file
@@ -0,0 +1,324 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier;
|
||||
|
||||
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\Frontcashier\Model as Model;
|
||||
|
||||
class FrontcashierClient
|
||||
{
|
||||
|
||||
/**
|
||||
* @var ClientHandler
|
||||
*/
|
||||
private $clientHandler;
|
||||
|
||||
/**
|
||||
* FrontcashierClient constructor.
|
||||
* @param ClientParams $clientParams
|
||||
*/
|
||||
function __construct(ClientParams $clientParams)
|
||||
{
|
||||
$this->clientHandler = new ClientHandler($clientParams);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Model\BankTransferPayRequest $request
|
||||
* @return Model\BankTransferPayResponse
|
||||
* @throws YopClientException
|
||||
*/
|
||||
public function bankTransferPay(Model\BankTransferPayRequest $request)
|
||||
{
|
||||
if ($request == null) {
|
||||
throw new YopClientException("request is required.");
|
||||
}
|
||||
$clientExecutionParams = new ClientExecutionParams($request,
|
||||
Model\BankTransferPayRequestMarshaller::getInstance(),
|
||||
Model\BankTransferPayResponseUnMarshaller::getInstance());
|
||||
|
||||
return $this->clientHandler->execute($clientExecutionParams);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Model\BankTransferQueryRequest $request
|
||||
* @return Model\BankTransferQueryResponse
|
||||
* @throws YopClientException
|
||||
*/
|
||||
public function bankTransferQuery(Model\BankTransferQueryRequest $request)
|
||||
{
|
||||
if ($request == null) {
|
||||
throw new YopClientException("request is required.");
|
||||
}
|
||||
if ($request->getParentMerchantNo() == null) {
|
||||
throw new YopClientException("request.parentMerchantNo is required.");
|
||||
}
|
||||
if ($request->getMerchantNo() == null) {
|
||||
throw new YopClientException("request.merchantNo is required.");
|
||||
}
|
||||
if ($request->getOrderId() == null) {
|
||||
throw new YopClientException("request.orderId is required.");
|
||||
}
|
||||
$clientExecutionParams = new ClientExecutionParams($request,
|
||||
Model\BankTransferQueryRequestMarshaller::getInstance(),
|
||||
Model\BankTransferQueryResponseUnMarshaller::getInstance());
|
||||
|
||||
return $this->clientHandler->execute($clientExecutionParams);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Model\BindcardConfirmRequest $request
|
||||
* @return Model\BindcardConfirmResponse
|
||||
* @throws YopClientException
|
||||
*/
|
||||
public function bindcardConfirm(Model\BindcardConfirmRequest $request)
|
||||
{
|
||||
if ($request == null) {
|
||||
throw new YopClientException("request is required.");
|
||||
}
|
||||
$clientExecutionParams = new ClientExecutionParams($request,
|
||||
Model\BindcardConfirmRequestMarshaller::getInstance(),
|
||||
Model\BindcardConfirmResponseUnMarshaller::getInstance());
|
||||
|
||||
return $this->clientHandler->execute($clientExecutionParams);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Model\BindcardConfirm0Request $request
|
||||
* @return Model\BindcardConfirm0Response
|
||||
* @throws YopClientException
|
||||
*/
|
||||
public function bindcardConfirm_0(Model\BindcardConfirm0Request $request)
|
||||
{
|
||||
if ($request == null) {
|
||||
throw new YopClientException("request is required.");
|
||||
}
|
||||
$clientExecutionParams = new ClientExecutionParams($request,
|
||||
Model\BindcardConfirm0RequestMarshaller::getInstance(),
|
||||
Model\BindcardConfirm0ResponseUnMarshaller::getInstance());
|
||||
|
||||
return $this->clientHandler->execute($clientExecutionParams);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Model\BindcardGetcardbinRequest $request
|
||||
* @return Model\BindcardGetcardbinResponse
|
||||
* @throws YopClientException
|
||||
*/
|
||||
public function bindcardGetcardbin(Model\BindcardGetcardbinRequest $request)
|
||||
{
|
||||
if ($request == null) {
|
||||
throw new YopClientException("request is required.");
|
||||
}
|
||||
$clientExecutionParams = new ClientExecutionParams($request,
|
||||
Model\BindcardGetcardbinRequestMarshaller::getInstance(),
|
||||
Model\BindcardGetcardbinResponseUnMarshaller::getInstance());
|
||||
|
||||
return $this->clientHandler->execute($clientExecutionParams);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Model\BindcardQueryorderRequest $request
|
||||
* @return Model\BindcardQueryorderResponse
|
||||
* @throws YopClientException
|
||||
*/
|
||||
public function bindcardQueryorder(Model\BindcardQueryorderRequest $request)
|
||||
{
|
||||
if ($request == null) {
|
||||
throw new YopClientException("request is required.");
|
||||
}
|
||||
$clientExecutionParams = new ClientExecutionParams($request,
|
||||
Model\BindcardQueryorderRequestMarshaller::getInstance(),
|
||||
Model\BindcardQueryorderResponseUnMarshaller::getInstance());
|
||||
|
||||
return $this->clientHandler->execute($clientExecutionParams);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Model\BindcardRequestRequest $request
|
||||
* @return Model\BindcardRequestResponse
|
||||
* @throws YopClientException
|
||||
*/
|
||||
public function bindcardRequest(Model\BindcardRequestRequest $request)
|
||||
{
|
||||
if ($request == null) {
|
||||
throw new YopClientException("request is required.");
|
||||
}
|
||||
$clientExecutionParams = new ClientExecutionParams($request,
|
||||
Model\BindcardRequestRequestMarshaller::getInstance(),
|
||||
Model\BindcardRequestResponseUnMarshaller::getInstance());
|
||||
|
||||
return $this->clientHandler->execute($clientExecutionParams);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Model\BindcardRequest0Request $request
|
||||
* @return Model\BindcardRequest0Response
|
||||
* @throws YopClientException
|
||||
*/
|
||||
public function bindcardRequest_0(Model\BindcardRequest0Request $request)
|
||||
{
|
||||
if ($request == null) {
|
||||
throw new YopClientException("request is required.");
|
||||
}
|
||||
$clientExecutionParams = new ClientExecutionParams($request,
|
||||
Model\BindcardRequest0RequestMarshaller::getInstance(),
|
||||
Model\BindcardRequest0ResponseUnMarshaller::getInstance());
|
||||
|
||||
return $this->clientHandler->execute($clientExecutionParams);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Model\BindcardResendsmsRequest $request
|
||||
* @return Model\BindcardResendsmsResponse
|
||||
* @throws YopClientException
|
||||
*/
|
||||
public function bindcardResendsms(Model\BindcardResendsmsRequest $request)
|
||||
{
|
||||
if ($request == null) {
|
||||
throw new YopClientException("request is required.");
|
||||
}
|
||||
$clientExecutionParams = new ClientExecutionParams($request,
|
||||
Model\BindcardResendsmsRequestMarshaller::getInstance(),
|
||||
Model\BindcardResendsmsResponseUnMarshaller::getInstance());
|
||||
|
||||
return $this->clientHandler->execute($clientExecutionParams);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Model\BindpayConfirmRequest $request
|
||||
* @return Model\BindpayConfirmResponse
|
||||
* @throws YopClientException
|
||||
*/
|
||||
public function bindpayConfirm(Model\BindpayConfirmRequest $request)
|
||||
{
|
||||
if ($request == null) {
|
||||
throw new YopClientException("request is required.");
|
||||
}
|
||||
$clientExecutionParams = new ClientExecutionParams($request,
|
||||
Model\BindpayConfirmRequestMarshaller::getInstance(),
|
||||
Model\BindpayConfirmResponseUnMarshaller::getInstance());
|
||||
|
||||
return $this->clientHandler->execute($clientExecutionParams);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Model\BindpayRequestRequest $request
|
||||
* @return Model\BindpayRequestResponse
|
||||
* @throws YopClientException
|
||||
*/
|
||||
public function bindpayRequest(Model\BindpayRequestRequest $request)
|
||||
{
|
||||
if ($request == null) {
|
||||
throw new YopClientException("request is required.");
|
||||
}
|
||||
$clientExecutionParams = new ClientExecutionParams($request,
|
||||
Model\BindpayRequestRequestMarshaller::getInstance(),
|
||||
Model\BindpayRequestResponseUnMarshaller::getInstance());
|
||||
|
||||
return $this->clientHandler->execute($clientExecutionParams);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Model\BindpaySendsmsRequest $request
|
||||
* @return Model\BindpaySendsmsResponse
|
||||
* @throws YopClientException
|
||||
*/
|
||||
public function bindpaySendsms(Model\BindpaySendsmsRequest $request)
|
||||
{
|
||||
if ($request == null) {
|
||||
throw new YopClientException("request is required.");
|
||||
}
|
||||
$clientExecutionParams = new ClientExecutionParams($request,
|
||||
Model\BindpaySendsmsRequestMarshaller::getInstance(),
|
||||
Model\BindpaySendsmsResponseUnMarshaller::getInstance());
|
||||
|
||||
return $this->clientHandler->execute($clientExecutionParams);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Model\GetcardbinRequest $request
|
||||
* @return Model\GetcardbinResponse
|
||||
* @throws YopClientException
|
||||
*/
|
||||
public function getcardbin(Model\GetcardbinRequest $request)
|
||||
{
|
||||
if ($request == null) {
|
||||
throw new YopClientException("request is required.");
|
||||
}
|
||||
$clientExecutionParams = new ClientExecutionParams($request, Model\GetcardbinRequestMarshaller::getInstance(),
|
||||
Model\GetcardbinResponseUnMarshaller::getInstance());
|
||||
|
||||
return $this->clientHandler->execute($clientExecutionParams);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Model\YjzfBindpayrequestRequest $request
|
||||
* @return Model\YjzfBindpayrequestResponse
|
||||
* @throws YopClientException
|
||||
*/
|
||||
public function yjzfBindpayrequest(Model\YjzfBindpayrequestRequest $request)
|
||||
{
|
||||
if ($request == null) {
|
||||
throw new YopClientException("request is required.");
|
||||
}
|
||||
$clientExecutionParams = new ClientExecutionParams($request,
|
||||
Model\YjzfBindpayrequestRequestMarshaller::getInstance(),
|
||||
Model\YjzfBindpayrequestResponseUnMarshaller::getInstance());
|
||||
|
||||
return $this->clientHandler->execute($clientExecutionParams);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Model\YjzfFirstpayrequestRequest $request
|
||||
* @return Model\YjzfFirstpayrequestResponse
|
||||
* @throws YopClientException
|
||||
*/
|
||||
public function yjzfFirstpayrequest(Model\YjzfFirstpayrequestRequest $request)
|
||||
{
|
||||
if ($request == null) {
|
||||
throw new YopClientException("request is required.");
|
||||
}
|
||||
$clientExecutionParams = new ClientExecutionParams($request,
|
||||
Model\YjzfFirstpayrequestRequestMarshaller::getInstance(),
|
||||
Model\YjzfFirstpayrequestResponseUnMarshaller::getInstance());
|
||||
|
||||
return $this->clientHandler->execute($clientExecutionParams);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Model\YjzfPaymentconfirmRequest $request
|
||||
* @return Model\YjzfPaymentconfirmResponse
|
||||
* @throws YopClientException
|
||||
*/
|
||||
public function yjzfPaymentconfirm(Model\YjzfPaymentconfirmRequest $request)
|
||||
{
|
||||
if ($request == null) {
|
||||
throw new YopClientException("request is required.");
|
||||
}
|
||||
$clientExecutionParams = new ClientExecutionParams($request,
|
||||
Model\YjzfPaymentconfirmRequestMarshaller::getInstance(),
|
||||
Model\YjzfPaymentconfirmResponseUnMarshaller::getInstance());
|
||||
|
||||
return $this->clientHandler->execute($clientExecutionParams);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Model\YjzfSendsmsRequest $request
|
||||
* @return Model\YjzfSendsmsResponse
|
||||
* @throws YopClientException
|
||||
*/
|
||||
public function yjzfSendsms(Model\YjzfSendsmsRequest $request)
|
||||
{
|
||||
if ($request == null) {
|
||||
throw new YopClientException("request is required.");
|
||||
}
|
||||
$clientExecutionParams = new ClientExecutionParams($request, Model\YjzfSendsmsRequestMarshaller::getInstance(),
|
||||
Model\YjzfSendsmsResponseUnMarshaller::getInstance());
|
||||
|
||||
return $this->clientHandler->execute($clientExecutionParams);
|
||||
}
|
||||
|
||||
}
|
||||
100
lib/Service/Frontcashier/FrontcashierClientBuilder.php
Normal file
100
lib/Service/Frontcashier/FrontcashierClientBuilder.php
Normal file
@@ -0,0 +1,100 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier;
|
||||
|
||||
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 FrontcashierClientBuilder
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AuthorizationReqRegistry
|
||||
*/
|
||||
private static $authorizationReqRegistry;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$authorizationReqRegistry = new AuthorityReqRegistryImpl();
|
||||
self::$authorizationReqRegistry->register('bankTransferPay',
|
||||
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
|
||||
self::$authorizationReqRegistry->register('bankTransferQuery',
|
||||
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
|
||||
self::$authorizationReqRegistry->register('bindcardConfirm',
|
||||
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
|
||||
self::$authorizationReqRegistry->register('bindcardConfirm_0',
|
||||
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
|
||||
self::$authorizationReqRegistry->register('bindcardGetcardbin',
|
||||
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
|
||||
self::$authorizationReqRegistry->register('bindcardQueryorder',
|
||||
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
|
||||
self::$authorizationReqRegistry->register('bindcardRequest',
|
||||
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
|
||||
self::$authorizationReqRegistry->register('bindcardRequest_0',
|
||||
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
|
||||
self::$authorizationReqRegistry->register('bindpayConfirm',
|
||||
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
|
||||
self::$authorizationReqRegistry->register('bindpayRequest',
|
||||
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
|
||||
self::$authorizationReqRegistry->register('bindpaySendsms',
|
||||
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
|
||||
self::$authorizationReqRegistry->register('getcardbin',
|
||||
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
|
||||
self::$authorizationReqRegistry->register('yjzfBindpayrequest',
|
||||
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
|
||||
self::$authorizationReqRegistry->register('yjzfFirstpayrequest',
|
||||
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
|
||||
self::$authorizationReqRegistry->register('yjzfPaymentconfirm',
|
||||
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
|
||||
self::$authorizationReqRegistry->register('yjzfSendsms',
|
||||
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @var ClientParams
|
||||
*/
|
||||
private $clientParams;
|
||||
|
||||
/**
|
||||
* FrontcashierClientBuilder constructor.
|
||||
* @param ClientParams $clientParams
|
||||
*/
|
||||
public function __construct(ClientParams $clientParams)
|
||||
{
|
||||
$this->clientParams = $clientParams;
|
||||
}
|
||||
|
||||
public function build()
|
||||
{
|
||||
return new FrontcashierClient($this->clientParams);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $config AppSdkConfig|array|AppSdkConfigProvider
|
||||
* @return FrontcashierClientBuilder
|
||||
* @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 FrontcashierClientBuilder($clientParams);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
FrontcashierClientBuilder::__init();
|
||||
@@ -0,0 +1,455 @@
|
||||
<?php
|
||||
/**
|
||||
* BankTransferPayAPIOfflineTransferResponseDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
* <p>前置收银台</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\Frontcashier\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* BankTransferPayAPIOfflineTransferResponseDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class BankTransferPayAPIOfflineTransferResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'BankTransferPayAPIOfflineTransferResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'msg' => 'string',
|
||||
'payStatus' => 'string',
|
||||
'receiveName' => 'string',
|
||||
'receiveAccountNo' => 'string',
|
||||
'accountName' => 'string',
|
||||
'areaInfo' => 'string',
|
||||
'amount' => 'float',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'msg' => null,
|
||||
'payStatus' => null,
|
||||
'receiveName' => null,
|
||||
'receiveAccountNo' => null,
|
||||
'accountName' => null,
|
||||
'areaInfo' => null,
|
||||
'amount' => null,
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'msg' => 'msg',
|
||||
'payStatus' => 'payStatus',
|
||||
'receiveName' => 'receiveName',
|
||||
'receiveAccountNo' => 'receiveAccountNo',
|
||||
'accountName' => 'accountName',
|
||||
'areaInfo' => 'areaInfo',
|
||||
'amount' => 'amount',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'msg' => 'setMsg',
|
||||
'payStatus' => 'setPayStatus',
|
||||
'receiveName' => 'setReceiveName',
|
||||
'receiveAccountNo' => 'setReceiveAccountNo',
|
||||
'accountName' => 'setAccountName',
|
||||
'areaInfo' => 'setAreaInfo',
|
||||
'amount' => 'setAmount',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'msg' => 'getMsg',
|
||||
'payStatus' => 'getPayStatus',
|
||||
'receiveName' => 'getReceiveName',
|
||||
'receiveAccountNo' => 'getReceiveAccountNo',
|
||||
'accountName' => 'getAccountName',
|
||||
'areaInfo' => 'getAreaInfo',
|
||||
'amount' => 'getAmount',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['msg'] = isset($data['msg']) ? $data['msg'] : null;
|
||||
$this->container['payStatus'] = isset($data['payStatus']) ? $data['payStatus'] : null;
|
||||
$this->container['receiveName'] = isset($data['receiveName']) ? $data['receiveName'] : null;
|
||||
$this->container['receiveAccountNo'] = isset($data['receiveAccountNo']) ? $data['receiveAccountNo'] : null;
|
||||
$this->container['accountName'] = isset($data['accountName']) ? $data['accountName'] : null;
|
||||
$this->container['areaInfo'] = isset($data['areaInfo']) ? $data['areaInfo'] : null;
|
||||
$this->container['amount'] = isset($data['amount']) ? $data['amount'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
* @param string $code 返回码
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets msg
|
||||
* @return string
|
||||
*/
|
||||
public function getMsg()
|
||||
{
|
||||
return $this->container['msg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets msg
|
||||
* @param string $msg 返回信息
|
||||
* @return $this
|
||||
*/
|
||||
public function setMsg($msg)
|
||||
{
|
||||
$this->container['msg'] = $msg;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets payStatus
|
||||
* @return string
|
||||
*/
|
||||
public function getPayStatus()
|
||||
{
|
||||
return $this->container['payStatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payStatus
|
||||
* @param string $payStatus 支付状态
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayStatus($payStatus)
|
||||
{
|
||||
$this->container['payStatus'] = $payStatus;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets receiveName
|
||||
* @return string
|
||||
*/
|
||||
public function getReceiveName()
|
||||
{
|
||||
return $this->container['receiveName'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets receiveName
|
||||
* @param string $receiveName 收款方名称
|
||||
* @return $this
|
||||
*/
|
||||
public function setReceiveName($receiveName)
|
||||
{
|
||||
$this->container['receiveName'] = $receiveName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets receiveAccountNo
|
||||
* @return string
|
||||
*/
|
||||
public function getReceiveAccountNo()
|
||||
{
|
||||
return $this->container['receiveAccountNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets receiveAccountNo
|
||||
* @param string $receiveAccountNo 收款方账号
|
||||
* @return $this
|
||||
*/
|
||||
public function setReceiveAccountNo($receiveAccountNo)
|
||||
{
|
||||
$this->container['receiveAccountNo'] = $receiveAccountNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets accountName
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountName()
|
||||
{
|
||||
return $this->container['accountName'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets accountName
|
||||
* @param string $accountName 收款方开户行
|
||||
* @return $this
|
||||
*/
|
||||
public function setAccountName($accountName)
|
||||
{
|
||||
$this->container['accountName'] = $accountName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets areaInfo
|
||||
* @return string
|
||||
*/
|
||||
public function getAreaInfo()
|
||||
{
|
||||
return $this->container['areaInfo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets areaInfo
|
||||
* @param string $areaInfo 省市/地区
|
||||
* @return $this
|
||||
*/
|
||||
public function setAreaInfo($areaInfo)
|
||||
{
|
||||
$this->container['areaInfo'] = $areaInfo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets amount
|
||||
* @return float
|
||||
*/
|
||||
public function getAmount()
|
||||
{
|
||||
return $this->container['amount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets amount
|
||||
* @param float $amount 转账金额
|
||||
* @return $this
|
||||
*/
|
||||
public function setAmount($amount)
|
||||
{
|
||||
$this->container['amount'] = $amount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
* @param integer $offset Offset
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
* @param integer $offset Offset
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
* @param integer $offset Offset
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
275
lib/Service/Frontcashier/Model/BankTransferPayRequest.php
Normal file
275
lib/Service/Frontcashier/Model/BankTransferPayRequest.php
Normal file
@@ -0,0 +1,275 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class BankTransferPayRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $orderId;
|
||||
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
private $orderAmount;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $expiredTime;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $notifyUrl;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $memo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $goodsName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $fundProcessType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $csUrl;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
* @param string $parentMerchantNo
|
||||
* @return BankTransferPayRequest
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
* @param string $merchantNo
|
||||
* @return BankTransferPayRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderId
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->orderId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderId
|
||||
* @param string $orderId
|
||||
* @return BankTransferPayRequest
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderAmount
|
||||
* @return float
|
||||
*/
|
||||
public function getOrderAmount()
|
||||
{
|
||||
return $this->orderAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderAmount
|
||||
* @param float $orderAmount
|
||||
* @return BankTransferPayRequest
|
||||
*/
|
||||
public function setOrderAmount($orderAmount)
|
||||
{
|
||||
$this->orderAmount = $orderAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets expiredTime
|
||||
* @return string
|
||||
*/
|
||||
public function getExpiredTime()
|
||||
{
|
||||
return $this->expiredTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets expiredTime
|
||||
* @param string $expiredTime
|
||||
* @return BankTransferPayRequest
|
||||
*/
|
||||
public function setExpiredTime($expiredTime)
|
||||
{
|
||||
$this->expiredTime = $expiredTime;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets notifyUrl
|
||||
* @return string
|
||||
*/
|
||||
public function getNotifyUrl()
|
||||
{
|
||||
return $this->notifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets notifyUrl
|
||||
* @param string $notifyUrl
|
||||
* @return BankTransferPayRequest
|
||||
*/
|
||||
public function setNotifyUrl($notifyUrl)
|
||||
{
|
||||
$this->notifyUrl = $notifyUrl;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets memo
|
||||
* @return string
|
||||
*/
|
||||
public function getMemo()
|
||||
{
|
||||
return $this->memo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets memo
|
||||
* @param string $memo
|
||||
* @return BankTransferPayRequest
|
||||
*/
|
||||
public function setMemo($memo)
|
||||
{
|
||||
$this->memo = $memo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets goodsName
|
||||
* @return string
|
||||
*/
|
||||
public function getGoodsName()
|
||||
{
|
||||
return $this->goodsName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets goodsName
|
||||
* @param string $goodsName
|
||||
* @return BankTransferPayRequest
|
||||
*/
|
||||
public function setGoodsName($goodsName)
|
||||
{
|
||||
$this->goodsName = $goodsName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets fundProcessType
|
||||
* @return string
|
||||
*/
|
||||
public function getFundProcessType()
|
||||
{
|
||||
return $this->fundProcessType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets fundProcessType
|
||||
* @param string $fundProcessType
|
||||
* @return BankTransferPayRequest
|
||||
*/
|
||||
public function setFundProcessType($fundProcessType)
|
||||
{
|
||||
$this->fundProcessType = $fundProcessType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets csUrl
|
||||
* @return string
|
||||
*/
|
||||
public function getCsUrl()
|
||||
{
|
||||
return $this->csUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets csUrl
|
||||
* @param string $csUrl
|
||||
* @return BankTransferPayRequest
|
||||
*/
|
||||
public function setCsUrl($csUrl)
|
||||
{
|
||||
$this->csUrl = $csUrl;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'bankTransferPay';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\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 BankTransferPayRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BankTransferPayRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BankTransferPayRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BankTransferPayRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Frontcashier';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/frontcashier/bank-transfer/pay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param BankTransferPayRequest $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
if ($request->getParentMerchantNo() != null) {
|
||||
$internalRequest->addParameter('parentMerchantNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if ($request->getMerchantNo() != null) {
|
||||
$internalRequest->addParameter('merchantNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if ($request->getOrderId() != null) {
|
||||
$internalRequest->addParameter('orderId',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string'));
|
||||
}
|
||||
if ($request->getOrderAmount() != null) {
|
||||
$internalRequest->addParameter('orderAmount',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'float'));
|
||||
}
|
||||
if ($request->getExpiredTime() != null) {
|
||||
$internalRequest->addParameter('expiredTime',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getExpiredTime(), 'string', 'date-time'));
|
||||
}
|
||||
if ($request->getNotifyUrl() != null) {
|
||||
$internalRequest->addParameter('notifyUrl',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'url'));
|
||||
}
|
||||
if ($request->getMemo() != null) {
|
||||
$internalRequest->addParameter('memo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getMemo(), 'string'));
|
||||
}
|
||||
if ($request->getGoodsName() != null) {
|
||||
$internalRequest->addParameter('goodsName',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getGoodsName(), 'string'));
|
||||
}
|
||||
if ($request->getFundProcessType() != null) {
|
||||
$internalRequest->addParameter('fundProcessType',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getFundProcessType(), 'string'));
|
||||
}
|
||||
if ($request->getCsUrl() != null) {
|
||||
$internalRequest->addParameter('csUrl',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getCsUrl(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BankTransferPayRequestMarshaller::__init();
|
||||
36
lib/Service/Frontcashier/Model/BankTransferPayResponse.php
Normal file
36
lib/Service/Frontcashier/Model/BankTransferPayResponse.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class BankTransferPayResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BankTransferPayAPIOfflineTransferResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\BankTransferPayAPIOfflineTransferResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param BankTransferPayAPIOfflineTransferResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BankTransferPayAPIOfflineTransferResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class BankTransferPayResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BankTransferPayResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BankTransferPayResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BankTransferPayResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BankTransferPayResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new BankTransferPayResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BankTransferPayResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,374 @@
|
||||
<?php
|
||||
/**
|
||||
* BankTransferQueryAPIOfflineTransferQueryResponseDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
* <p>前置收银台</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\Frontcashier\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* BankTransferQueryAPIOfflineTransferQueryResponseDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class BankTransferQueryAPIOfflineTransferQueryResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'BankTransferQueryAPIOfflineTransferQueryResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'msg' => 'string',
|
||||
'receiveName' => 'string',
|
||||
'receiveAccountNo' => 'string',
|
||||
'accountName' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'msg' => null,
|
||||
'receiveName' => null,
|
||||
'receiveAccountNo' => null,
|
||||
'accountName' => null,
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'msg' => 'msg',
|
||||
'receiveName' => 'receiveName',
|
||||
'receiveAccountNo' => 'receiveAccountNo',
|
||||
'accountName' => 'accountName',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'msg' => 'setMsg',
|
||||
'receiveName' => 'setReceiveName',
|
||||
'receiveAccountNo' => 'setReceiveAccountNo',
|
||||
'accountName' => 'setAccountName',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'msg' => 'getMsg',
|
||||
'receiveName' => 'getReceiveName',
|
||||
'receiveAccountNo' => 'getReceiveAccountNo',
|
||||
'accountName' => 'getAccountName',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['msg'] = isset($data['msg']) ? $data['msg'] : null;
|
||||
$this->container['receiveName'] = isset($data['receiveName']) ? $data['receiveName'] : null;
|
||||
$this->container['receiveAccountNo'] = isset($data['receiveAccountNo']) ? $data['receiveAccountNo'] : null;
|
||||
$this->container['accountName'] = isset($data['accountName']) ? $data['accountName'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
* @param string $code 返回码
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets msg
|
||||
* @return string
|
||||
*/
|
||||
public function getMsg()
|
||||
{
|
||||
return $this->container['msg'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets msg
|
||||
* @param string $msg 返回信息
|
||||
* @return $this
|
||||
*/
|
||||
public function setMsg($msg)
|
||||
{
|
||||
$this->container['msg'] = $msg;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets receiveName
|
||||
* @return string
|
||||
*/
|
||||
public function getReceiveName()
|
||||
{
|
||||
return $this->container['receiveName'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets receiveName
|
||||
* @param string $receiveName 收款方名称
|
||||
* @return $this
|
||||
*/
|
||||
public function setReceiveName($receiveName)
|
||||
{
|
||||
$this->container['receiveName'] = $receiveName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets receiveAccountNo
|
||||
* @return string
|
||||
*/
|
||||
public function getReceiveAccountNo()
|
||||
{
|
||||
return $this->container['receiveAccountNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets receiveAccountNo
|
||||
* @param string $receiveAccountNo 收款方账号
|
||||
* @return $this
|
||||
*/
|
||||
public function setReceiveAccountNo($receiveAccountNo)
|
||||
{
|
||||
$this->container['receiveAccountNo'] = $receiveAccountNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets accountName
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountName()
|
||||
{
|
||||
return $this->container['accountName'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets accountName
|
||||
* @param string $accountName 收款方开户行
|
||||
* @return $this
|
||||
*/
|
||||
public function setAccountName($accountName)
|
||||
{
|
||||
$this->container['accountName'] = $accountName;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
93
lib/Service/Frontcashier/Model/BankTransferQueryRequest.php
Normal file
93
lib/Service/Frontcashier/Model/BankTransferQueryRequest.php
Normal file
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class BankTransferQueryRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $orderId;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
* @param string $parentMerchantNo
|
||||
* @return BankTransferQueryRequest
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
* @param string $merchantNo
|
||||
* @return BankTransferQueryRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderId
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->orderId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderId
|
||||
* @param string $orderId
|
||||
* @return BankTransferQueryRequest
|
||||
*/
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'bankTransferQuery';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\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 BankTransferQueryRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BankTransferQueryRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BankTransferQueryRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BankTransferQueryRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Frontcashier';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'GET';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/frontcashier/bank-transfer/query';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param BankTransferQueryRequest $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());
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BankTransferQueryRequestMarshaller::__init();
|
||||
36
lib/Service/Frontcashier/Model/BankTransferQueryResponse.php
Normal file
36
lib/Service/Frontcashier/Model/BankTransferQueryResponse.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class BankTransferQueryResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BankTransferQueryAPIOfflineTransferQueryResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\BankTransferQueryAPIOfflineTransferQueryResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param BankTransferQueryAPIOfflineTransferQueryResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BankTransferQueryAPIOfflineTransferQueryResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class BankTransferQueryResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BankTransferQueryResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BankTransferQueryResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BankTransferQueryResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BankTransferQueryResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new BankTransferQueryResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BankTransferQueryResponseUnMarshaller::__init();
|
||||
93
lib/Service/Frontcashier/Model/BindcardConfirm0Request.php
Normal file
93
lib/Service/Frontcashier/Model/BindcardConfirm0Request.php
Normal file
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class BindcardConfirm0Request extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantFlowId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $smsCode;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
* @param string $parentMerchantNo
|
||||
* @return BindcardConfirm0Request
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantFlowId
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantFlowId()
|
||||
{
|
||||
return $this->merchantFlowId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantFlowId
|
||||
* @param string $merchantFlowId
|
||||
* @return BindcardConfirm0Request
|
||||
*/
|
||||
public function setMerchantFlowId($merchantFlowId)
|
||||
{
|
||||
$this->merchantFlowId = $merchantFlowId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets smsCode
|
||||
* @return string
|
||||
*/
|
||||
public function getSmsCode()
|
||||
{
|
||||
return $this->smsCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets smsCode
|
||||
* @param string $smsCode
|
||||
* @return BindcardConfirm0Request
|
||||
*/
|
||||
public function setSmsCode($smsCode)
|
||||
{
|
||||
$this->smsCode = $smsCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'bindcardConfirm_0';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\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 BindcardConfirm0RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardConfirm0RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardConfirm0RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardConfirm0RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Frontcashier';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v2.0/frontcashier/bindcard/confirm';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param BindcardConfirm0Request $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
if ($request->getParentMerchantNo() != null) {
|
||||
$internalRequest->addParameter('parentMerchantNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if ($request->getMerchantFlowId() != null) {
|
||||
$internalRequest->addParameter('merchantFlowId',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getMerchantFlowId(), 'string'));
|
||||
}
|
||||
if ($request->getSmsCode() != null) {
|
||||
$internalRequest->addParameter('smsCode',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getSmsCode(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BindcardConfirm0RequestMarshaller::__init();
|
||||
36
lib/Service/Frontcashier/Model/BindcardConfirm0Response.php
Normal file
36
lib/Service/Frontcashier/Model/BindcardConfirm0Response.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class BindcardConfirm0Response extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardConfirmOpenAuthBindCardConfirmResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\BindcardConfirmOpenAuthBindCardConfirmResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param BindcardConfirmOpenAuthBindCardConfirmResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardConfirmOpenAuthBindCardConfirmResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class BindcardConfirm0ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardConfirm0ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardConfirm0ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardConfirm0ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardConfirm0Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new BindcardConfirm0Response();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BindcardConfirm0ResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,455 @@
|
||||
<?php
|
||||
/**
|
||||
* BindcardConfirmOpenAuthBindCardConfirmResponseDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
* <p>前置收银台</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\Frontcashier\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* BindcardConfirmOpenAuthBindCardConfirmResponseDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class BindcardConfirmOpenAuthBindCardConfirmResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'BindcardConfirmOpenAuthBindCardConfirmResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'parentMerchantNo' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'merchantFlowId' => 'string',
|
||||
'nopOrderId' => 'string',
|
||||
'bindId' => 'string',
|
||||
'signStatus' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'parentMerchantNo' => null,
|
||||
'merchantNo' => null,
|
||||
'merchantFlowId' => null,
|
||||
'nopOrderId' => null,
|
||||
'bindId' => null,
|
||||
'signStatus' => null,
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'parentMerchantNo' => 'parentMerchantNo',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'merchantFlowId' => 'merchantFlowId',
|
||||
'nopOrderId' => 'nopOrderId',
|
||||
'bindId' => 'bindId',
|
||||
'signStatus' => 'signStatus',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'parentMerchantNo' => 'setParentMerchantNo',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'merchantFlowId' => 'setMerchantFlowId',
|
||||
'nopOrderId' => 'setNopOrderId',
|
||||
'bindId' => 'setBindId',
|
||||
'signStatus' => 'setSignStatus',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'parentMerchantNo' => 'getParentMerchantNo',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'merchantFlowId' => 'getMerchantFlowId',
|
||||
'nopOrderId' => 'getNopOrderId',
|
||||
'bindId' => 'getBindId',
|
||||
'signStatus' => 'getSignStatus',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['merchantFlowId'] = isset($data['merchantFlowId']) ? $data['merchantFlowId'] : null;
|
||||
$this->container['nopOrderId'] = isset($data['nopOrderId']) ? $data['nopOrderId'] : null;
|
||||
$this->container['bindId'] = isset($data['bindId']) ? $data['bindId'] : null;
|
||||
$this->container['signStatus'] = isset($data['signStatus']) ? $data['signStatus'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
* @param string $code 返回码
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
* @param string $message 返回信息
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->container['parentMerchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
* @param string $parentMerchantNo 主商户编号
|
||||
* @return $this
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->container['parentMerchantNo'] = $parentMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->container['merchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
* @param string $merchantNo 商户编号
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->container['merchantNo'] = $merchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantFlowId
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantFlowId()
|
||||
{
|
||||
return $this->container['merchantFlowId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantFlowId
|
||||
* @param string $merchantFlowId 原商户绑卡请求号
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantFlowId($merchantFlowId)
|
||||
{
|
||||
$this->container['merchantFlowId'] = $merchantFlowId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets nopOrderId
|
||||
* @return string
|
||||
*/
|
||||
public function getNopOrderId()
|
||||
{
|
||||
return $this->container['nopOrderId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets nopOrderId
|
||||
* @param string $nopOrderId 易宝绑卡订单号
|
||||
* @return $this
|
||||
*/
|
||||
public function setNopOrderId($nopOrderId)
|
||||
{
|
||||
$this->container['nopOrderId'] = $nopOrderId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bindId
|
||||
* @return string
|
||||
*/
|
||||
public function getBindId()
|
||||
{
|
||||
return $this->container['bindId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bindId
|
||||
* @param string $bindId 绑卡ID
|
||||
* @return $this
|
||||
*/
|
||||
public function setBindId($bindId)
|
||||
{
|
||||
$this->container['bindId'] = $bindId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets signStatus
|
||||
* @return string
|
||||
*/
|
||||
public function getSignStatus()
|
||||
{
|
||||
return $this->container['signStatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets signStatus
|
||||
* @param string $signStatus 签约状态
|
||||
* @return $this
|
||||
*/
|
||||
public function setSignStatus($signStatus)
|
||||
{
|
||||
$this->container['signStatus'] = $signStatus;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
145
lib/Service/Frontcashier/Model/BindcardConfirmRequest.php
Normal file
145
lib/Service/Frontcashier/Model/BindcardConfirmRequest.php
Normal file
@@ -0,0 +1,145 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class BindcardConfirmRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantFlowId;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
private $empower;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $smsCode;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
* @param string $parentMerchantNo
|
||||
* @return BindcardConfirmRequest
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
* @param string $merchantNo
|
||||
* @return BindcardConfirmRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantFlowId
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantFlowId()
|
||||
{
|
||||
return $this->merchantFlowId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantFlowId
|
||||
* @param string $merchantFlowId
|
||||
* @return BindcardConfirmRequest
|
||||
*/
|
||||
public function setMerchantFlowId($merchantFlowId)
|
||||
{
|
||||
$this->merchantFlowId = $merchantFlowId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets empower
|
||||
* @return bool
|
||||
*/
|
||||
public function getEmpower()
|
||||
{
|
||||
return $this->empower;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets empower
|
||||
* @param bool $empower
|
||||
* @return BindcardConfirmRequest
|
||||
*/
|
||||
public function setEmpower($empower)
|
||||
{
|
||||
$this->empower = $empower;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets smsCode
|
||||
* @return string
|
||||
*/
|
||||
public function getSmsCode()
|
||||
{
|
||||
return $this->smsCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets smsCode
|
||||
* @param string $smsCode
|
||||
* @return BindcardConfirmRequest
|
||||
*/
|
||||
public function setSmsCode($smsCode)
|
||||
{
|
||||
$this->smsCode = $smsCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'bindcardConfirm';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\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 BindcardConfirmRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardConfirmRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardConfirmRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardConfirmRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Frontcashier';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/frontcashier/bindcard/confirm';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param BindcardConfirmRequest $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
if ($request->getParentMerchantNo() != null) {
|
||||
$internalRequest->addParameter('parentMerchantNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if ($request->getMerchantNo() != null) {
|
||||
$internalRequest->addParameter('merchantNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if ($request->getMerchantFlowId() != null) {
|
||||
$internalRequest->addParameter('merchantFlowId',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getMerchantFlowId(), 'string'));
|
||||
}
|
||||
if ($request->getEmpower() != null) {
|
||||
$internalRequest->addParameter('empower',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getEmpower(), 'bool'));
|
||||
}
|
||||
if ($request->getSmsCode() != null) {
|
||||
$internalRequest->addParameter('smsCode',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getSmsCode(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BindcardConfirmRequestMarshaller::__init();
|
||||
36
lib/Service/Frontcashier/Model/BindcardConfirmResponse.php
Normal file
36
lib/Service/Frontcashier/Model/BindcardConfirmResponse.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class BindcardConfirmResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardConfirmOpenAuthBindCardConfirmResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\BindcardConfirmOpenAuthBindCardConfirmResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param BindcardConfirmOpenAuthBindCardConfirmResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardConfirmOpenAuthBindCardConfirmResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class BindcardConfirmResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardConfirmResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardConfirmResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardConfirmResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardConfirmResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new BindcardConfirmResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BindcardConfirmResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,428 @@
|
||||
<?php
|
||||
/**
|
||||
* BindcardGetcardbinOpenQueryCardbinResponseDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
* <p>前置收银台</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\Frontcashier\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* BindcardGetcardbinOpenQueryCardbinResponseDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class BindcardGetcardbinOpenQueryCardbinResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'BindcardGetcardbinOpenQueryCardbinResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'parentMerchantNo' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'bankCardType' => 'string',
|
||||
'bankName' => 'string',
|
||||
'bankCode' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'parentMerchantNo' => null,
|
||||
'merchantNo' => null,
|
||||
'bankCardType' => null,
|
||||
'bankName' => null,
|
||||
'bankCode' => null,
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'parentMerchantNo' => 'parentMerchantNo',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'bankCardType' => 'bankCardType',
|
||||
'bankName' => 'bankName',
|
||||
'bankCode' => 'bankCode',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'parentMerchantNo' => 'setParentMerchantNo',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'bankCardType' => 'setBankCardType',
|
||||
'bankName' => 'setBankName',
|
||||
'bankCode' => 'setBankCode',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'parentMerchantNo' => 'getParentMerchantNo',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'bankCardType' => 'getBankCardType',
|
||||
'bankName' => 'getBankName',
|
||||
'bankCode' => 'getBankCode',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['bankCardType'] = isset($data['bankCardType']) ? $data['bankCardType'] : null;
|
||||
$this->container['bankName'] = isset($data['bankName']) ? $data['bankName'] : null;
|
||||
$this->container['bankCode'] = isset($data['bankCode']) ? $data['bankCode'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
* @param string $code 返回码
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
* @param string $message 返回描述
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->container['parentMerchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
* @param string $parentMerchantNo 交易发起方商编
|
||||
* @return $this
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->container['parentMerchantNo'] = $parentMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->container['merchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
* @param string $merchantNo 收单商户商编
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->container['merchantNo'] = $merchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankCardType
|
||||
* @return string
|
||||
*/
|
||||
public function getBankCardType()
|
||||
{
|
||||
return $this->container['bankCardType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankCardType
|
||||
* @param string $bankCardType 卡类型
|
||||
* @return $this
|
||||
*/
|
||||
public function setBankCardType($bankCardType)
|
||||
{
|
||||
$this->container['bankCardType'] = $bankCardType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankName
|
||||
* @return string
|
||||
*/
|
||||
public function getBankName()
|
||||
{
|
||||
return $this->container['bankName'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankName
|
||||
* @param string $bankName 银行名称
|
||||
* @return $this
|
||||
*/
|
||||
public function setBankName($bankName)
|
||||
{
|
||||
$this->container['bankName'] = $bankName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankCode
|
||||
* @return string
|
||||
*/
|
||||
public function getBankCode()
|
||||
{
|
||||
return $this->container['bankCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankCode
|
||||
* @param string $bankCode 银行编码
|
||||
* @return $this
|
||||
*/
|
||||
public function setBankCode($bankCode)
|
||||
{
|
||||
$this->container['bankCode'] = $bankCode;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
119
lib/Service/Frontcashier/Model/BindcardGetcardbinRequest.php
Normal file
119
lib/Service/Frontcashier/Model/BindcardGetcardbinRequest.php
Normal file
@@ -0,0 +1,119 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class BindcardGetcardbinRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $bankCardNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $cardType;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
* @param string $parentMerchantNo
|
||||
* @return BindcardGetcardbinRequest
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
* @param string $merchantNo
|
||||
* @return BindcardGetcardbinRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankCardNo
|
||||
* @return string
|
||||
*/
|
||||
public function getBankCardNo()
|
||||
{
|
||||
return $this->bankCardNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankCardNo
|
||||
* @param string $bankCardNo
|
||||
* @return BindcardGetcardbinRequest
|
||||
*/
|
||||
public function setBankCardNo($bankCardNo)
|
||||
{
|
||||
$this->bankCardNo = $bankCardNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets cardType
|
||||
* @return string
|
||||
*/
|
||||
public function getCardType()
|
||||
{
|
||||
return $this->cardType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cardType
|
||||
* @param string $cardType
|
||||
* @return BindcardGetcardbinRequest
|
||||
*/
|
||||
public function setCardType($cardType)
|
||||
{
|
||||
$this->cardType = $cardType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'bindcardGetcardbin';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\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 BindcardGetcardbinRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardGetcardbinRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardGetcardbinRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardGetcardbinRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Frontcashier';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/frontcashier/bindcard/getcardbin';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param BindcardGetcardbinRequest $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
if ($request->getParentMerchantNo() != null) {
|
||||
$internalRequest->addParameter('parentMerchantNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if ($request->getMerchantNo() != null) {
|
||||
$internalRequest->addParameter('merchantNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if ($request->getBankCardNo() != null) {
|
||||
$internalRequest->addParameter('bankCardNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getBankCardNo(), 'string'));
|
||||
}
|
||||
if ($request->getCardType() != null) {
|
||||
$internalRequest->addParameter('cardType',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getCardType(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BindcardGetcardbinRequestMarshaller::__init();
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class BindcardGetcardbinResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardGetcardbinOpenQueryCardbinResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\BindcardGetcardbinOpenQueryCardbinResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param BindcardGetcardbinOpenQueryCardbinResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardGetcardbinOpenQueryCardbinResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class BindcardGetcardbinResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardGetcardbinResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardGetcardbinResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardGetcardbinResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardGetcardbinResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new BindcardGetcardbinResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BindcardGetcardbinResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,968 @@
|
||||
<?php
|
||||
/**
|
||||
* BindcardQueryorderOpenQueryOrderResponseDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
* <p>前置收银台</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\Frontcashier\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* BindcardQueryorderOpenQueryOrderResponseDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class BindcardQueryorderOpenQueryOrderResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'BindcardQueryorderOpenQueryOrderResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'merchantFlowId' => 'string',
|
||||
'nopOrderId' => 'string',
|
||||
'orderStatus' => 'string',
|
||||
'signStatus' => 'string',
|
||||
'userNo' => 'string',
|
||||
'userType' => 'string',
|
||||
'entrustProtocolId' => 'string',
|
||||
'collectAmount' => 'float',
|
||||
'collectBeginDate' => 'string',
|
||||
'collectEndDate' => 'string',
|
||||
'cycleFrequency' => 'int',
|
||||
'cycleStep' => 'int',
|
||||
'cycleStepUnit' => 'string',
|
||||
'submitMethod' => 'string',
|
||||
'submitUrl' => 'string',
|
||||
'encoding' => 'string',
|
||||
'bankCardNo' => 'string',
|
||||
'userName' => 'string',
|
||||
'idCardNo' => 'string',
|
||||
'idCardType' => 'string',
|
||||
'phone' => 'string',
|
||||
'bankCode' => 'string',
|
||||
'signSuccessNotifyUrl' => 'string',
|
||||
'bindId' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'merchantNo' => null,
|
||||
'merchantFlowId' => null,
|
||||
'nopOrderId' => null,
|
||||
'orderStatus' => null,
|
||||
'signStatus' => null,
|
||||
'userNo' => null,
|
||||
'userType' => null,
|
||||
'entrustProtocolId' => null,
|
||||
'collectAmount' => null,
|
||||
'collectBeginDate' => 'date-time',
|
||||
'collectEndDate' => 'date-time',
|
||||
'cycleFrequency' => 'int32',
|
||||
'cycleStep' => 'int32',
|
||||
'cycleStepUnit' => null,
|
||||
'submitMethod' => null,
|
||||
'submitUrl' => null,
|
||||
'encoding' => null,
|
||||
'bankCardNo' => null,
|
||||
'userName' => null,
|
||||
'idCardNo' => null,
|
||||
'idCardType' => null,
|
||||
'phone' => null,
|
||||
'bankCode' => null,
|
||||
'signSuccessNotifyUrl' => null,
|
||||
'bindId' => null,
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'merchantFlowId' => 'merchantFlowId',
|
||||
'nopOrderId' => 'nopOrderId',
|
||||
'orderStatus' => 'orderStatus',
|
||||
'signStatus' => 'signStatus',
|
||||
'userNo' => 'userNo',
|
||||
'userType' => 'userType',
|
||||
'entrustProtocolId' => 'entrustProtocolId',
|
||||
'collectAmount' => 'collectAmount',
|
||||
'collectBeginDate' => 'collectBeginDate',
|
||||
'collectEndDate' => 'collectEndDate',
|
||||
'cycleFrequency' => 'cycleFrequency',
|
||||
'cycleStep' => 'cycleStep',
|
||||
'cycleStepUnit' => 'cycleStepUnit',
|
||||
'submitMethod' => 'submitMethod',
|
||||
'submitUrl' => 'submitUrl',
|
||||
'encoding' => 'encoding',
|
||||
'bankCardNo' => 'bankCardNo',
|
||||
'userName' => 'userName',
|
||||
'idCardNo' => 'idCardNo',
|
||||
'idCardType' => 'idCardType',
|
||||
'phone' => 'phone',
|
||||
'bankCode' => 'bankCode',
|
||||
'signSuccessNotifyUrl' => 'signSuccessNotifyUrl',
|
||||
'bindId' => 'bindId',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'merchantFlowId' => 'setMerchantFlowId',
|
||||
'nopOrderId' => 'setNopOrderId',
|
||||
'orderStatus' => 'setOrderStatus',
|
||||
'signStatus' => 'setSignStatus',
|
||||
'userNo' => 'setUserNo',
|
||||
'userType' => 'setUserType',
|
||||
'entrustProtocolId' => 'setEntrustProtocolId',
|
||||
'collectAmount' => 'setCollectAmount',
|
||||
'collectBeginDate' => 'setCollectBeginDate',
|
||||
'collectEndDate' => 'setCollectEndDate',
|
||||
'cycleFrequency' => 'setCycleFrequency',
|
||||
'cycleStep' => 'setCycleStep',
|
||||
'cycleStepUnit' => 'setCycleStepUnit',
|
||||
'submitMethod' => 'setSubmitMethod',
|
||||
'submitUrl' => 'setSubmitUrl',
|
||||
'encoding' => 'setEncoding',
|
||||
'bankCardNo' => 'setBankCardNo',
|
||||
'userName' => 'setUserName',
|
||||
'idCardNo' => 'setIdCardNo',
|
||||
'idCardType' => 'setIdCardType',
|
||||
'phone' => 'setPhone',
|
||||
'bankCode' => 'setBankCode',
|
||||
'signSuccessNotifyUrl' => 'setSignSuccessNotifyUrl',
|
||||
'bindId' => 'setBindId',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'merchantFlowId' => 'getMerchantFlowId',
|
||||
'nopOrderId' => 'getNopOrderId',
|
||||
'orderStatus' => 'getOrderStatus',
|
||||
'signStatus' => 'getSignStatus',
|
||||
'userNo' => 'getUserNo',
|
||||
'userType' => 'getUserType',
|
||||
'entrustProtocolId' => 'getEntrustProtocolId',
|
||||
'collectAmount' => 'getCollectAmount',
|
||||
'collectBeginDate' => 'getCollectBeginDate',
|
||||
'collectEndDate' => 'getCollectEndDate',
|
||||
'cycleFrequency' => 'getCycleFrequency',
|
||||
'cycleStep' => 'getCycleStep',
|
||||
'cycleStepUnit' => 'getCycleStepUnit',
|
||||
'submitMethod' => 'getSubmitMethod',
|
||||
'submitUrl' => 'getSubmitUrl',
|
||||
'encoding' => 'getEncoding',
|
||||
'bankCardNo' => 'getBankCardNo',
|
||||
'userName' => 'getUserName',
|
||||
'idCardNo' => 'getIdCardNo',
|
||||
'idCardType' => 'getIdCardType',
|
||||
'phone' => 'getPhone',
|
||||
'bankCode' => 'getBankCode',
|
||||
'signSuccessNotifyUrl' => 'getSignSuccessNotifyUrl',
|
||||
'bindId' => 'getBindId',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['merchantFlowId'] = isset($data['merchantFlowId']) ? $data['merchantFlowId'] : null;
|
||||
$this->container['nopOrderId'] = isset($data['nopOrderId']) ? $data['nopOrderId'] : null;
|
||||
$this->container['orderStatus'] = isset($data['orderStatus']) ? $data['orderStatus'] : null;
|
||||
$this->container['signStatus'] = isset($data['signStatus']) ? $data['signStatus'] : null;
|
||||
$this->container['userNo'] = isset($data['userNo']) ? $data['userNo'] : null;
|
||||
$this->container['userType'] = isset($data['userType']) ? $data['userType'] : null;
|
||||
$this->container['entrustProtocolId'] = isset($data['entrustProtocolId']) ? $data['entrustProtocolId'] : null;
|
||||
$this->container['collectAmount'] = isset($data['collectAmount']) ? $data['collectAmount'] : null;
|
||||
$this->container['collectBeginDate'] = isset($data['collectBeginDate']) ? $data['collectBeginDate'] : null;
|
||||
$this->container['collectEndDate'] = isset($data['collectEndDate']) ? $data['collectEndDate'] : null;
|
||||
$this->container['cycleFrequency'] = isset($data['cycleFrequency']) ? $data['cycleFrequency'] : null;
|
||||
$this->container['cycleStep'] = isset($data['cycleStep']) ? $data['cycleStep'] : null;
|
||||
$this->container['cycleStepUnit'] = isset($data['cycleStepUnit']) ? $data['cycleStepUnit'] : null;
|
||||
$this->container['submitMethod'] = isset($data['submitMethod']) ? $data['submitMethod'] : null;
|
||||
$this->container['submitUrl'] = isset($data['submitUrl']) ? $data['submitUrl'] : null;
|
||||
$this->container['encoding'] = isset($data['encoding']) ? $data['encoding'] : null;
|
||||
$this->container['bankCardNo'] = isset($data['bankCardNo']) ? $data['bankCardNo'] : null;
|
||||
$this->container['userName'] = isset($data['userName']) ? $data['userName'] : null;
|
||||
$this->container['idCardNo'] = isset($data['idCardNo']) ? $data['idCardNo'] : null;
|
||||
$this->container['idCardType'] = isset($data['idCardType']) ? $data['idCardType'] : null;
|
||||
$this->container['phone'] = isset($data['phone']) ? $data['phone'] : null;
|
||||
$this->container['bankCode'] = isset($data['bankCode']) ? $data['bankCode'] : null;
|
||||
$this->container['signSuccessNotifyUrl'] = isset($data['signSuccessNotifyUrl']) ? $data['signSuccessNotifyUrl'] : null;
|
||||
$this->container['bindId'] = isset($data['bindId']) ? $data['bindId'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
* @param string $code 返回码
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
* @param string $message 返回描述
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets 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 merchantFlowId
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantFlowId()
|
||||
{
|
||||
return $this->container['merchantFlowId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantFlowId
|
||||
* @param string $merchantFlowId 商户签约/绑卡请求号
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantFlowId($merchantFlowId)
|
||||
{
|
||||
$this->container['merchantFlowId'] = $merchantFlowId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets nopOrderId
|
||||
* @return string
|
||||
*/
|
||||
public function getNopOrderId()
|
||||
{
|
||||
return $this->container['nopOrderId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets nopOrderId
|
||||
* @param string $nopOrderId 易宝订单号
|
||||
* @return $this
|
||||
*/
|
||||
public function setNopOrderId($nopOrderId)
|
||||
{
|
||||
$this->container['nopOrderId'] = $nopOrderId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderStatus
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderStatus()
|
||||
{
|
||||
return $this->container['orderStatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderStatus
|
||||
* @param string $orderStatus 订单状态
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderStatus($orderStatus)
|
||||
{
|
||||
$this->container['orderStatus'] = $orderStatus;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets signStatus
|
||||
* @return string
|
||||
*/
|
||||
public function getSignStatus()
|
||||
{
|
||||
return $this->container['signStatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets signStatus
|
||||
* @param string $signStatus 银行签约状态
|
||||
* @return $this
|
||||
*/
|
||||
public function setSignStatus($signStatus)
|
||||
{
|
||||
$this->container['signStatus'] = $signStatus;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets userNo
|
||||
* @return string
|
||||
*/
|
||||
public function getUserNo()
|
||||
{
|
||||
return $this->container['userNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userNo
|
||||
* @param string $userNo 用户标识
|
||||
* @return $this
|
||||
*/
|
||||
public function setUserNo($userNo)
|
||||
{
|
||||
$this->container['userNo'] = $userNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets userType
|
||||
* @return string
|
||||
*/
|
||||
public function getUserType()
|
||||
{
|
||||
return $this->container['userType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userType
|
||||
* @param string $userType 用户标识类型
|
||||
* @return $this
|
||||
*/
|
||||
public function setUserType($userType)
|
||||
{
|
||||
$this->container['userType'] = $userType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets entrustProtocolId
|
||||
* @return string
|
||||
*/
|
||||
public function getEntrustProtocolId()
|
||||
{
|
||||
return $this->container['entrustProtocolId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets entrustProtocolId
|
||||
* @param string $entrustProtocolId 商业委托协议ID,仅商业委托返回
|
||||
* @return $this
|
||||
*/
|
||||
public function setEntrustProtocolId($entrustProtocolId)
|
||||
{
|
||||
$this->container['entrustProtocolId'] = $entrustProtocolId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets collectAmount
|
||||
* @return float
|
||||
*/
|
||||
public function getCollectAmount()
|
||||
{
|
||||
return $this->container['collectAmount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets collectAmount
|
||||
* @param float $collectAmount 代收金额,仅商业委托返回
|
||||
* @return $this
|
||||
*/
|
||||
public function setCollectAmount($collectAmount)
|
||||
{
|
||||
$this->container['collectAmount'] = $collectAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets collectBeginDate
|
||||
* @return string
|
||||
*/
|
||||
public function getCollectBeginDate()
|
||||
{
|
||||
return $this->container['collectBeginDate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets collectBeginDate
|
||||
* @param string $collectBeginDate 代收开始时间,仅商业委托返回
|
||||
* @return $this
|
||||
*/
|
||||
public function setCollectBeginDate($collectBeginDate)
|
||||
{
|
||||
$this->container['collectBeginDate'] = $collectBeginDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets collectEndDate
|
||||
* @return string
|
||||
*/
|
||||
public function getCollectEndDate()
|
||||
{
|
||||
return $this->container['collectEndDate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets collectEndDate
|
||||
* @param string $collectEndDate 代收结束时间,仅商业委托返回
|
||||
* @return $this
|
||||
*/
|
||||
public function setCollectEndDate($collectEndDate)
|
||||
{
|
||||
$this->container['collectEndDate'] = $collectEndDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets cycleFrequency
|
||||
* @return int
|
||||
*/
|
||||
public function getCycleFrequency()
|
||||
{
|
||||
return $this->container['cycleFrequency'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cycleFrequency
|
||||
* @param int $cycleFrequency 代收频次,仅商业委托返回
|
||||
* @return $this
|
||||
*/
|
||||
public function setCycleFrequency($cycleFrequency)
|
||||
{
|
||||
$this->container['cycleFrequency'] = $cycleFrequency;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets cycleStep
|
||||
* @return int
|
||||
*/
|
||||
public function getCycleStep()
|
||||
{
|
||||
return $this->container['cycleStep'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cycleStep
|
||||
* @param int $cycleStep 代收步长,仅商业委托返回
|
||||
* @return $this
|
||||
*/
|
||||
public function setCycleStep($cycleStep)
|
||||
{
|
||||
$this->container['cycleStep'] = $cycleStep;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets cycleStepUnit
|
||||
* @return string
|
||||
*/
|
||||
public function getCycleStepUnit()
|
||||
{
|
||||
return $this->container['cycleStepUnit'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cycleStepUnit
|
||||
* @param string $cycleStepUnit 代收周期单位,仅商业委托返回
|
||||
* @return $this
|
||||
*/
|
||||
public function setCycleStepUnit($cycleStepUnit)
|
||||
{
|
||||
$this->container['cycleStepUnit'] = $cycleStepUnit;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets submitMethod
|
||||
* @return string
|
||||
*/
|
||||
public function getSubmitMethod()
|
||||
{
|
||||
return $this->container['submitMethod'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets submitMethod
|
||||
* @param string $submitMethod 跳页签约提交方式,仅跳页签约返回
|
||||
* @return $this
|
||||
*/
|
||||
public function setSubmitMethod($submitMethod)
|
||||
{
|
||||
$this->container['submitMethod'] = $submitMethod;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets submitUrl
|
||||
* @return string
|
||||
*/
|
||||
public function getSubmitUrl()
|
||||
{
|
||||
return $this->container['submitUrl'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets submitUrl
|
||||
* @param string $submitUrl 跳页签约url,仅跳页签约返回
|
||||
* @return $this
|
||||
*/
|
||||
public function setSubmitUrl($submitUrl)
|
||||
{
|
||||
$this->container['submitUrl'] = $submitUrl;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets encoding
|
||||
* @return string
|
||||
*/
|
||||
public function getEncoding()
|
||||
{
|
||||
return $this->container['encoding'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets encoding
|
||||
* @param string $encoding 跳页页面编码,仅跳页签约返回
|
||||
* @return $this
|
||||
*/
|
||||
public function setEncoding($encoding)
|
||||
{
|
||||
$this->container['encoding'] = $encoding;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankCardNo
|
||||
* @return string
|
||||
*/
|
||||
public function getBankCardNo()
|
||||
{
|
||||
return $this->container['bankCardNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankCardNo
|
||||
* @param string $bankCardNo 银行卡号
|
||||
* @return $this
|
||||
*/
|
||||
public function setBankCardNo($bankCardNo)
|
||||
{
|
||||
$this->container['bankCardNo'] = $bankCardNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets userName
|
||||
* @return string
|
||||
*/
|
||||
public function getUserName()
|
||||
{
|
||||
return $this->container['userName'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userName
|
||||
* @param string $userName 姓名
|
||||
* @return $this
|
||||
*/
|
||||
public function setUserName($userName)
|
||||
{
|
||||
$this->container['userName'] = $userName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets idCardNo
|
||||
* @return string
|
||||
*/
|
||||
public function getIdCardNo()
|
||||
{
|
||||
return $this->container['idCardNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idCardNo
|
||||
* @param string $idCardNo 证件号
|
||||
* @return $this
|
||||
*/
|
||||
public function setIdCardNo($idCardNo)
|
||||
{
|
||||
$this->container['idCardNo'] = $idCardNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets idCardType
|
||||
* @return string
|
||||
*/
|
||||
public function getIdCardType()
|
||||
{
|
||||
return $this->container['idCardType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idCardType
|
||||
* @param string $idCardType 证件类型
|
||||
* @return $this
|
||||
*/
|
||||
public function setIdCardType($idCardType)
|
||||
{
|
||||
$this->container['idCardType'] = $idCardType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets phone
|
||||
* @return string
|
||||
*/
|
||||
public function getPhone()
|
||||
{
|
||||
return $this->container['phone'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets phone
|
||||
* @param string $phone 银行预留手机号
|
||||
* @return $this
|
||||
*/
|
||||
public function setPhone($phone)
|
||||
{
|
||||
$this->container['phone'] = $phone;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankCode
|
||||
* @return string
|
||||
*/
|
||||
public function getBankCode()
|
||||
{
|
||||
return $this->container['bankCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankCode
|
||||
* @param string $bankCode 银行编码
|
||||
* @return $this
|
||||
*/
|
||||
public function setBankCode($bankCode)
|
||||
{
|
||||
$this->container['bankCode'] = $bankCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets signSuccessNotifyUrl
|
||||
* @return string
|
||||
*/
|
||||
public function getSignSuccessNotifyUrl()
|
||||
{
|
||||
return $this->container['signSuccessNotifyUrl'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets signSuccessNotifyUrl
|
||||
* @param string $signSuccessNotifyUrl 跳页签约回调地址,仅跳页签约返回
|
||||
* @return $this
|
||||
*/
|
||||
public function setSignSuccessNotifyUrl($signSuccessNotifyUrl)
|
||||
{
|
||||
$this->container['signSuccessNotifyUrl'] = $signSuccessNotifyUrl;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bindId
|
||||
* @return string
|
||||
*/
|
||||
public function getBindId()
|
||||
{
|
||||
return $this->container['bindId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bindId
|
||||
* @param string $bindId 签约/绑卡ID
|
||||
* @return $this
|
||||
*/
|
||||
public function setBindId($bindId)
|
||||
{
|
||||
$this->container['bindId'] = $bindId;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
119
lib/Service/Frontcashier/Model/BindcardQueryorderRequest.php
Normal file
119
lib/Service/Frontcashier/Model/BindcardQueryorderRequest.php
Normal file
@@ -0,0 +1,119 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class BindcardQueryorderRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantFlowId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $nopOrderId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $phone;
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
* @param string $merchantNo
|
||||
* @return BindcardQueryorderRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantFlowId
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantFlowId()
|
||||
{
|
||||
return $this->merchantFlowId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantFlowId
|
||||
* @param string $merchantFlowId
|
||||
* @return BindcardQueryorderRequest
|
||||
*/
|
||||
public function setMerchantFlowId($merchantFlowId)
|
||||
{
|
||||
$this->merchantFlowId = $merchantFlowId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets nopOrderId
|
||||
* @return string
|
||||
*/
|
||||
public function getNopOrderId()
|
||||
{
|
||||
return $this->nopOrderId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets nopOrderId
|
||||
* @param string $nopOrderId
|
||||
* @return BindcardQueryorderRequest
|
||||
*/
|
||||
public function setNopOrderId($nopOrderId)
|
||||
{
|
||||
$this->nopOrderId = $nopOrderId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets phone
|
||||
* @return string
|
||||
*/
|
||||
public function getPhone()
|
||||
{
|
||||
return $this->phone;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets phone
|
||||
* @param string $phone
|
||||
* @return BindcardQueryorderRequest
|
||||
*/
|
||||
public function setPhone($phone)
|
||||
{
|
||||
$this->phone = $phone;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'bindcardQueryorder';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\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 BindcardQueryorderRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardQueryorderRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardQueryorderRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardQueryorderRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Frontcashier';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/frontcashier/bindcard/queryorder';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param BindcardQueryorderRequest $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
if ($request->getMerchantNo() != null) {
|
||||
$internalRequest->addParameter('merchantNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if ($request->getMerchantFlowId() != null) {
|
||||
$internalRequest->addParameter('merchantFlowId',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getMerchantFlowId(), 'string'));
|
||||
}
|
||||
if ($request->getNopOrderId() != null) {
|
||||
$internalRequest->addParameter('nopOrderId',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getNopOrderId(), 'string'));
|
||||
}
|
||||
if ($request->getPhone() != null) {
|
||||
$internalRequest->addParameter('phone',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getPhone(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BindcardQueryorderRequestMarshaller::__init();
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class BindcardQueryorderResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardQueryorderOpenQueryOrderResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\BindcardQueryorderOpenQueryOrderResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param BindcardQueryorderOpenQueryOrderResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardQueryorderOpenQueryOrderResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class BindcardQueryorderResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardQueryorderResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardQueryorderResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardQueryorderResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardQueryorderResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new BindcardQueryorderResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BindcardQueryorderResponseUnMarshaller::__init();
|
||||
379
lib/Service/Frontcashier/Model/BindcardRequest0Request.php
Normal file
379
lib/Service/Frontcashier/Model/BindcardRequest0Request.php
Normal file
@@ -0,0 +1,379 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class BindcardRequest0Request extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantFlowId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $bankCardNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $idCardNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $phone;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $cvv2;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $validthru;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $orderValidate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $authType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $cardType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $isSMS;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
* @param string $parentMerchantNo
|
||||
* @return BindcardRequest0Request
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantFlowId
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantFlowId()
|
||||
{
|
||||
return $this->merchantFlowId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantFlowId
|
||||
* @param string $merchantFlowId
|
||||
* @return BindcardRequest0Request
|
||||
*/
|
||||
public function setMerchantFlowId($merchantFlowId)
|
||||
{
|
||||
$this->merchantFlowId = $merchantFlowId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets userNo
|
||||
* @return string
|
||||
*/
|
||||
public function getUserNo()
|
||||
{
|
||||
return $this->userNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userNo
|
||||
* @param string $userNo
|
||||
* @return BindcardRequest0Request
|
||||
*/
|
||||
public function setUserNo($userNo)
|
||||
{
|
||||
$this->userNo = $userNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets userType
|
||||
* @return string
|
||||
*/
|
||||
public function getUserType()
|
||||
{
|
||||
return $this->userType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userType
|
||||
* @param string $userType
|
||||
* @return BindcardRequest0Request
|
||||
*/
|
||||
public function setUserType($userType)
|
||||
{
|
||||
$this->userType = $userType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankCardNo
|
||||
* @return string
|
||||
*/
|
||||
public function getBankCardNo()
|
||||
{
|
||||
return $this->bankCardNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankCardNo
|
||||
* @param string $bankCardNo
|
||||
* @return BindcardRequest0Request
|
||||
*/
|
||||
public function setBankCardNo($bankCardNo)
|
||||
{
|
||||
$this->bankCardNo = $bankCardNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets userName
|
||||
* @return string
|
||||
*/
|
||||
public function getUserName()
|
||||
{
|
||||
return $this->userName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userName
|
||||
* @param string $userName
|
||||
* @return BindcardRequest0Request
|
||||
*/
|
||||
public function setUserName($userName)
|
||||
{
|
||||
$this->userName = $userName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets idCardNo
|
||||
* @return string
|
||||
*/
|
||||
public function getIdCardNo()
|
||||
{
|
||||
return $this->idCardNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idCardNo
|
||||
* @param string $idCardNo
|
||||
* @return BindcardRequest0Request
|
||||
*/
|
||||
public function setIdCardNo($idCardNo)
|
||||
{
|
||||
$this->idCardNo = $idCardNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets phone
|
||||
* @return string
|
||||
*/
|
||||
public function getPhone()
|
||||
{
|
||||
return $this->phone;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets phone
|
||||
* @param string $phone
|
||||
* @return BindcardRequest0Request
|
||||
*/
|
||||
public function setPhone($phone)
|
||||
{
|
||||
$this->phone = $phone;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets cvv2
|
||||
* @return string
|
||||
*/
|
||||
public function getCvv2()
|
||||
{
|
||||
return $this->cvv2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cvv2
|
||||
* @param string $cvv2
|
||||
* @return BindcardRequest0Request
|
||||
*/
|
||||
public function setCvv2($cvv2)
|
||||
{
|
||||
$this->cvv2 = $cvv2;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets validthru
|
||||
* @return string
|
||||
*/
|
||||
public function getValidthru()
|
||||
{
|
||||
return $this->validthru;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets validthru
|
||||
* @param string $validthru
|
||||
* @return BindcardRequest0Request
|
||||
*/
|
||||
public function setValidthru($validthru)
|
||||
{
|
||||
$this->validthru = $validthru;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderValidate
|
||||
* @return int
|
||||
*/
|
||||
public function getOrderValidate()
|
||||
{
|
||||
return $this->orderValidate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderValidate
|
||||
* @param int $orderValidate
|
||||
* @return BindcardRequest0Request
|
||||
*/
|
||||
public function setOrderValidate($orderValidate)
|
||||
{
|
||||
$this->orderValidate = $orderValidate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets authType
|
||||
* @return string
|
||||
*/
|
||||
public function getAuthType()
|
||||
{
|
||||
return $this->authType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets authType
|
||||
* @param string $authType
|
||||
* @return BindcardRequest0Request
|
||||
*/
|
||||
public function setAuthType($authType)
|
||||
{
|
||||
$this->authType = $authType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets cardType
|
||||
* @return string
|
||||
*/
|
||||
public function getCardType()
|
||||
{
|
||||
return $this->cardType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cardType
|
||||
* @param string $cardType
|
||||
* @return BindcardRequest0Request
|
||||
*/
|
||||
public function setCardType($cardType)
|
||||
{
|
||||
$this->cardType = $cardType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets isSMS
|
||||
* @return string
|
||||
*/
|
||||
public function getIsSMS()
|
||||
{
|
||||
return $this->isSMS;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets isSMS
|
||||
* @param string $isSMS
|
||||
* @return BindcardRequest0Request
|
||||
*/
|
||||
public function setIsSMS($isSMS)
|
||||
{
|
||||
$this->isSMS = $isSMS;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'bindcardRequest_0';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\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 BindcardRequest0RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardRequest0RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardRequest0RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardRequest0RequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Frontcashier';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v2.0/frontcashier/bindcard/request';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param BindcardRequest0Request $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
if ($request->getParentMerchantNo() != null) {
|
||||
$internalRequest->addParameter('parentMerchantNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if ($request->getMerchantFlowId() != null) {
|
||||
$internalRequest->addParameter('merchantFlowId',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getMerchantFlowId(), 'string'));
|
||||
}
|
||||
if ($request->getUserNo() != null) {
|
||||
$internalRequest->addParameter('userNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getUserNo(), 'string'));
|
||||
}
|
||||
if ($request->getUserType() != null) {
|
||||
$internalRequest->addParameter('userType',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getUserType(), 'string'));
|
||||
}
|
||||
if ($request->getBankCardNo() != null) {
|
||||
$internalRequest->addParameter('bankCardNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getBankCardNo(), 'string'));
|
||||
}
|
||||
if ($request->getUserName() != null) {
|
||||
$internalRequest->addParameter('userName',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getUserName(), 'string'));
|
||||
}
|
||||
if ($request->getIdCardNo() != null) {
|
||||
$internalRequest->addParameter('idCardNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getIdCardNo(), 'string'));
|
||||
}
|
||||
if ($request->getPhone() != null) {
|
||||
$internalRequest->addParameter('phone',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getPhone(), 'string'));
|
||||
}
|
||||
if ($request->getCvv2() != null) {
|
||||
$internalRequest->addParameter('cvv2',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getCvv2(), 'string'));
|
||||
}
|
||||
if ($request->getValidthru() != null) {
|
||||
$internalRequest->addParameter('validthru',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getValidthru(), 'string'));
|
||||
}
|
||||
if ($request->getOrderValidate() != null) {
|
||||
$internalRequest->addParameter('orderValidate',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getOrderValidate(), 'int', 'int32'));
|
||||
}
|
||||
if ($request->getAuthType() != null) {
|
||||
$internalRequest->addParameter('authType',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getAuthType(), 'string'));
|
||||
}
|
||||
if ($request->getCardType() != null) {
|
||||
$internalRequest->addParameter('cardType',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getCardType(), 'string'));
|
||||
}
|
||||
if ($request->getIsSMS() != null) {
|
||||
$internalRequest->addParameter('isSMS',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getIsSMS(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BindcardRequest0RequestMarshaller::__init();
|
||||
36
lib/Service/Frontcashier/Model/BindcardRequest0Response.php
Normal file
36
lib/Service/Frontcashier/Model/BindcardRequest0Response.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class BindcardRequest0Response extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardRequestOpenAuthBindCardResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\BindcardRequestOpenAuthBindCardResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param BindcardRequestOpenAuthBindCardResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardRequestOpenAuthBindCardResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class BindcardRequest0ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardRequest0ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardRequest0ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardRequest0ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardRequest0Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new BindcardRequest0Response();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BindcardRequest0ResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,455 @@
|
||||
<?php
|
||||
/**
|
||||
* BindcardRequestOpenAuthBindCardResponseDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
* <p>前置收银台</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\Frontcashier\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* BindcardRequestOpenAuthBindCardResponseDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class BindcardRequestOpenAuthBindCardResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'BindcardRequestOpenAuthBindCardResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'parentMerchantNo' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'merchantFlowId' => 'string',
|
||||
'nopOrderId' => 'string',
|
||||
'bindId' => 'string',
|
||||
'signStatus' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'parentMerchantNo' => null,
|
||||
'merchantNo' => null,
|
||||
'merchantFlowId' => null,
|
||||
'nopOrderId' => null,
|
||||
'bindId' => null,
|
||||
'signStatus' => null,
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'parentMerchantNo' => 'parentMerchantNo',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'merchantFlowId' => 'merchantFlowId',
|
||||
'nopOrderId' => 'nopOrderId',
|
||||
'bindId' => 'bindId',
|
||||
'signStatus' => 'signStatus',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'parentMerchantNo' => 'setParentMerchantNo',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'merchantFlowId' => 'setMerchantFlowId',
|
||||
'nopOrderId' => 'setNopOrderId',
|
||||
'bindId' => 'setBindId',
|
||||
'signStatus' => 'setSignStatus',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'parentMerchantNo' => 'getParentMerchantNo',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'merchantFlowId' => 'getMerchantFlowId',
|
||||
'nopOrderId' => 'getNopOrderId',
|
||||
'bindId' => 'getBindId',
|
||||
'signStatus' => 'getSignStatus',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['merchantFlowId'] = isset($data['merchantFlowId']) ? $data['merchantFlowId'] : null;
|
||||
$this->container['nopOrderId'] = isset($data['nopOrderId']) ? $data['nopOrderId'] : null;
|
||||
$this->container['bindId'] = isset($data['bindId']) ? $data['bindId'] : null;
|
||||
$this->container['signStatus'] = isset($data['signStatus']) ? $data['signStatus'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
* @param string $code 返回码
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
* @param string $message 返回信息
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->container['parentMerchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
* @param string $parentMerchantNo 主商户编号
|
||||
* @return $this
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->container['parentMerchantNo'] = $parentMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->container['merchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
* @param string $merchantNo 商户编号
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->container['merchantNo'] = $merchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantFlowId
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantFlowId()
|
||||
{
|
||||
return $this->container['merchantFlowId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantFlowId
|
||||
* @param string $merchantFlowId 绑卡请求号
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantFlowId($merchantFlowId)
|
||||
{
|
||||
$this->container['merchantFlowId'] = $merchantFlowId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets nopOrderId
|
||||
* @return string
|
||||
*/
|
||||
public function getNopOrderId()
|
||||
{
|
||||
return $this->container['nopOrderId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets nopOrderId
|
||||
* @param string $nopOrderId 易宝绑卡流水号
|
||||
* @return $this
|
||||
*/
|
||||
public function setNopOrderId($nopOrderId)
|
||||
{
|
||||
$this->container['nopOrderId'] = $nopOrderId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bindId
|
||||
* @return string
|
||||
*/
|
||||
public function getBindId()
|
||||
{
|
||||
return $this->container['bindId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bindId
|
||||
* @param string $bindId 绑卡ID
|
||||
* @return $this
|
||||
*/
|
||||
public function setBindId($bindId)
|
||||
{
|
||||
$this->container['bindId'] = $bindId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets signStatus
|
||||
* @return string
|
||||
*/
|
||||
public function getSignStatus()
|
||||
{
|
||||
return $this->container['signStatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets signStatus
|
||||
* @param string $signStatus 签约状态
|
||||
* @return $this
|
||||
*/
|
||||
public function setSignStatus($signStatus)
|
||||
{
|
||||
$this->container['signStatus'] = $signStatus;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
457
lib/Service/Frontcashier/Model/BindcardRequestRequest.php
Normal file
457
lib/Service/Frontcashier/Model/BindcardRequestRequest.php
Normal file
@@ -0,0 +1,457 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class BindcardRequestRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantFlowId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $bankCardNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $idCardNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $phone;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $cvv2;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $validthru;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $riskParamExt;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $orderValidate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $authType;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
private $empower;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $cardType;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
private $isSMS;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
* @param string $parentMerchantNo
|
||||
* @return BindcardRequestRequest
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
* @param string $merchantNo
|
||||
* @return BindcardRequestRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantFlowId
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantFlowId()
|
||||
{
|
||||
return $this->merchantFlowId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantFlowId
|
||||
* @param string $merchantFlowId
|
||||
* @return BindcardRequestRequest
|
||||
*/
|
||||
public function setMerchantFlowId($merchantFlowId)
|
||||
{
|
||||
$this->merchantFlowId = $merchantFlowId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets userNo
|
||||
* @return string
|
||||
*/
|
||||
public function getUserNo()
|
||||
{
|
||||
return $this->userNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userNo
|
||||
* @param string $userNo
|
||||
* @return BindcardRequestRequest
|
||||
*/
|
||||
public function setUserNo($userNo)
|
||||
{
|
||||
$this->userNo = $userNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets userType
|
||||
* @return string
|
||||
*/
|
||||
public function getUserType()
|
||||
{
|
||||
return $this->userType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userType
|
||||
* @param string $userType
|
||||
* @return BindcardRequestRequest
|
||||
*/
|
||||
public function setUserType($userType)
|
||||
{
|
||||
$this->userType = $userType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankCardNo
|
||||
* @return string
|
||||
*/
|
||||
public function getBankCardNo()
|
||||
{
|
||||
return $this->bankCardNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankCardNo
|
||||
* @param string $bankCardNo
|
||||
* @return BindcardRequestRequest
|
||||
*/
|
||||
public function setBankCardNo($bankCardNo)
|
||||
{
|
||||
$this->bankCardNo = $bankCardNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets userName
|
||||
* @return string
|
||||
*/
|
||||
public function getUserName()
|
||||
{
|
||||
return $this->userName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userName
|
||||
* @param string $userName
|
||||
* @return BindcardRequestRequest
|
||||
*/
|
||||
public function setUserName($userName)
|
||||
{
|
||||
$this->userName = $userName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets idCardNo
|
||||
* @return string
|
||||
*/
|
||||
public function getIdCardNo()
|
||||
{
|
||||
return $this->idCardNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idCardNo
|
||||
* @param string $idCardNo
|
||||
* @return BindcardRequestRequest
|
||||
*/
|
||||
public function setIdCardNo($idCardNo)
|
||||
{
|
||||
$this->idCardNo = $idCardNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets phone
|
||||
* @return string
|
||||
*/
|
||||
public function getPhone()
|
||||
{
|
||||
return $this->phone;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets phone
|
||||
* @param string $phone
|
||||
* @return BindcardRequestRequest
|
||||
*/
|
||||
public function setPhone($phone)
|
||||
{
|
||||
$this->phone = $phone;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets cvv2
|
||||
* @return string
|
||||
*/
|
||||
public function getCvv2()
|
||||
{
|
||||
return $this->cvv2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cvv2
|
||||
* @param string $cvv2
|
||||
* @return BindcardRequestRequest
|
||||
*/
|
||||
public function setCvv2($cvv2)
|
||||
{
|
||||
$this->cvv2 = $cvv2;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets validthru
|
||||
* @return string
|
||||
*/
|
||||
public function getValidthru()
|
||||
{
|
||||
return $this->validthru;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets validthru
|
||||
* @param string $validthru
|
||||
* @return BindcardRequestRequest
|
||||
*/
|
||||
public function setValidthru($validthru)
|
||||
{
|
||||
$this->validthru = $validthru;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets riskParamExt
|
||||
* @return string
|
||||
*/
|
||||
public function getRiskParamExt()
|
||||
{
|
||||
return $this->riskParamExt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets riskParamExt
|
||||
* @param string $riskParamExt
|
||||
* @return BindcardRequestRequest
|
||||
*/
|
||||
public function setRiskParamExt($riskParamExt)
|
||||
{
|
||||
$this->riskParamExt = $riskParamExt;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderValidate
|
||||
* @return int
|
||||
*/
|
||||
public function getOrderValidate()
|
||||
{
|
||||
return $this->orderValidate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderValidate
|
||||
* @param int $orderValidate
|
||||
* @return BindcardRequestRequest
|
||||
*/
|
||||
public function setOrderValidate($orderValidate)
|
||||
{
|
||||
$this->orderValidate = $orderValidate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets authType
|
||||
* @return string
|
||||
*/
|
||||
public function getAuthType()
|
||||
{
|
||||
return $this->authType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets authType
|
||||
* @param string $authType
|
||||
* @return BindcardRequestRequest
|
||||
*/
|
||||
public function setAuthType($authType)
|
||||
{
|
||||
$this->authType = $authType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets empower
|
||||
* @return bool
|
||||
*/
|
||||
public function getEmpower()
|
||||
{
|
||||
return $this->empower;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets empower
|
||||
* @param bool $empower
|
||||
* @return BindcardRequestRequest
|
||||
*/
|
||||
public function setEmpower($empower)
|
||||
{
|
||||
$this->empower = $empower;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets cardType
|
||||
* @return string
|
||||
*/
|
||||
public function getCardType()
|
||||
{
|
||||
return $this->cardType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cardType
|
||||
* @param string $cardType
|
||||
* @return BindcardRequestRequest
|
||||
*/
|
||||
public function setCardType($cardType)
|
||||
{
|
||||
$this->cardType = $cardType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets isSMS
|
||||
* @return bool
|
||||
*/
|
||||
public function getIsSMS()
|
||||
{
|
||||
return $this->isSMS;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets isSMS
|
||||
* @param bool $isSMS
|
||||
* @return BindcardRequestRequest
|
||||
*/
|
||||
public function setIsSMS($isSMS)
|
||||
{
|
||||
$this->isSMS = $isSMS;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'bindcardRequest';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,145 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\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 BindcardRequestRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardRequestRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardRequestRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardRequestRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Frontcashier';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/frontcashier/bindcard/request';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param BindcardRequestRequest $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
if ($request->getParentMerchantNo() != null) {
|
||||
$internalRequest->addParameter('parentMerchantNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if ($request->getMerchantNo() != null) {
|
||||
$internalRequest->addParameter('merchantNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
|
||||
}
|
||||
if ($request->getMerchantFlowId() != null) {
|
||||
$internalRequest->addParameter('merchantFlowId',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getMerchantFlowId(), 'string'));
|
||||
}
|
||||
if ($request->getUserNo() != null) {
|
||||
$internalRequest->addParameter('userNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getUserNo(), 'string'));
|
||||
}
|
||||
if ($request->getUserType() != null) {
|
||||
$internalRequest->addParameter('userType',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getUserType(), 'string'));
|
||||
}
|
||||
if ($request->getBankCardNo() != null) {
|
||||
$internalRequest->addParameter('bankCardNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getBankCardNo(), 'string'));
|
||||
}
|
||||
if ($request->getUserName() != null) {
|
||||
$internalRequest->addParameter('userName',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getUserName(), 'string'));
|
||||
}
|
||||
if ($request->getIdCardNo() != null) {
|
||||
$internalRequest->addParameter('idCardNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getIdCardNo(), 'string'));
|
||||
}
|
||||
if ($request->getPhone() != null) {
|
||||
$internalRequest->addParameter('phone',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getPhone(), 'string'));
|
||||
}
|
||||
if ($request->getCvv2() != null) {
|
||||
$internalRequest->addParameter('cvv2',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getCvv2(), 'string'));
|
||||
}
|
||||
if ($request->getValidthru() != null) {
|
||||
$internalRequest->addParameter('validthru',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getValidthru(), 'string'));
|
||||
}
|
||||
if ($request->getRiskParamExt() != null) {
|
||||
$internalRequest->addParameter('riskParamExt',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getRiskParamExt(), 'string'));
|
||||
}
|
||||
if ($request->getOrderValidate() != null) {
|
||||
$internalRequest->addParameter('orderValidate',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getOrderValidate(), 'int', 'int32'));
|
||||
}
|
||||
if ($request->getAuthType() != null) {
|
||||
$internalRequest->addParameter('authType',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getAuthType(), 'string'));
|
||||
}
|
||||
if ($request->getEmpower() != null) {
|
||||
$internalRequest->addParameter('empower',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getEmpower(), 'bool'));
|
||||
}
|
||||
if ($request->getCardType() != null) {
|
||||
$internalRequest->addParameter('cardType',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getCardType(), 'string'));
|
||||
}
|
||||
if ($request->getIsSMS() != null) {
|
||||
$internalRequest->addParameter('isSMS',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getIsSMS(), 'bool'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BindcardRequestRequestMarshaller::__init();
|
||||
36
lib/Service/Frontcashier/Model/BindcardRequestResponse.php
Normal file
36
lib/Service/Frontcashier/Model/BindcardRequestResponse.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class BindcardRequestResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardRequestOpenAuthBindCardResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\BindcardRequestOpenAuthBindCardResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param BindcardRequestOpenAuthBindCardResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardRequestOpenAuthBindCardResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class BindcardRequestResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardRequestResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardRequestResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardRequestResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardRequestResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new BindcardRequestResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BindcardRequestResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,368 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
use ArrayAccess;
|
||||
|
||||
class BindcardResendsmsOpenAuthBindCardResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'BindcardResendsmsOpenAuthBindCardResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'parentMerchantNo' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'merchantFlowId' => 'string',
|
||||
'nopOrderId' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'parentMerchantNo' => null,
|
||||
'merchantNo' => null,
|
||||
'merchantFlowId' => null,
|
||||
'nopOrderId' => null,
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'parentMerchantNo' => 'parentMerchantNo',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'merchantFlowId' => 'merchantFlowId',
|
||||
'nopOrderId' => 'nopOrderId',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'parentMerchantNo' => 'setParentMerchantNo',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'merchantFlowId' => 'setMerchantFlowId',
|
||||
'nopOrderId' => 'setNopOrderId',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'parentMerchantNo' => 'getParentMerchantNo',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'merchantFlowId' => 'getMerchantFlowId',
|
||||
'nopOrderId' => 'getNopOrderId',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['merchantFlowId'] = isset($data['merchantFlowId']) ? $data['merchantFlowId'] : null;
|
||||
$this->container['nopOrderId'] = isset($data['nopOrderId']) ? $data['nopOrderId'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
* @param string $code 返回码
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
* @param string $message 返回信息
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->container['parentMerchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
* @param string $parentMerchantNo 主商户编号
|
||||
* @return $this
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->container['parentMerchantNo'] = $parentMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->container['merchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
* @param string $merchantNo 商户编号
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->container['merchantNo'] = $merchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantFlowId
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantFlowId()
|
||||
{
|
||||
return $this->container['merchantFlowId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantFlowId
|
||||
* @param string $merchantFlowId 绑卡请求号
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantFlowId($merchantFlowId)
|
||||
{
|
||||
$this->container['merchantFlowId'] = $merchantFlowId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets nopOrderId
|
||||
* @return string
|
||||
*/
|
||||
public function getNopOrderId()
|
||||
{
|
||||
return $this->container['nopOrderId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets nopOrderId
|
||||
* @param string $nopOrderId 易宝绑卡流水号
|
||||
* @return $this
|
||||
*/
|
||||
public function setNopOrderId($nopOrderId)
|
||||
{
|
||||
$this->container['nopOrderId'] = $nopOrderId;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
65
lib/Service/Frontcashier/Model/BindcardResendsmsRequest.php
Normal file
65
lib/Service/Frontcashier/Model/BindcardResendsmsRequest.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class BindcardResendsmsRequest extends BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantFlowId;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
* @param string $parentMerchantNo
|
||||
* @return BindcardResendsmsRequest
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantFlowId
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantFlowId()
|
||||
{
|
||||
return $this->merchantFlowId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantFlowId
|
||||
* @param string $merchantFlowId
|
||||
* @return BindcardResendsmsRequest
|
||||
*/
|
||||
public function setMerchantFlowId($merchantFlowId)
|
||||
{
|
||||
$this->merchantFlowId = $merchantFlowId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'bindcardResendsms';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\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 BindcardResendsmsRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var BindcardRequestRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardResendsmsRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardRequestRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Frontcashier';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/frontcashier/bindcard/resendsms';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param BindcardResendsmsRequest $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
if ($request->getParentMerchantNo() != null) {
|
||||
$internalRequest->addParameter('parentMerchantNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
if ($request->getMerchantFlowId() != null) {
|
||||
$internalRequest->addParameter('merchantFlowId',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getMerchantFlowId(), 'string'));
|
||||
}
|
||||
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
BindcardResendsmsRequestMarshaller::__init();
|
||||
34
lib/Service/Frontcashier/Model/BindcardResendsmsResponse.php
Normal file
34
lib/Service/Frontcashier/Model/BindcardResendsmsResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class BindcardResendsmsResponse extends BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var BindcardResendsmsOpenAuthBindCardResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\BindcardResendsmsOpenAuthBindCardResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param BindcardResendsmsOpenAuthBindCardResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardResendsmsOpenAuthBindCardResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class BindcardResendsmsResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardResendsmsResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardResendsmsResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardResendsmsResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardResendsmsResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new BindcardResendsmsResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BindcardResendsmsResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,347 @@
|
||||
<?php
|
||||
/**
|
||||
* BindpayConfirmApiBindPayConfirmResponseDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
* <p>前置收银台</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\Frontcashier\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* BindpayConfirmApiBindPayConfirmResponseDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class BindpayConfirmApiBindPayConfirmResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'BindpayConfirmApiBindPayConfirmResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'recordId' => 'string',
|
||||
'token' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'recordId' => null,
|
||||
'token' => null,
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'recordId' => 'recordId',
|
||||
'token' => 'token',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'recordId' => 'setRecordId',
|
||||
'token' => 'setToken',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'recordId' => 'getRecordId',
|
||||
'token' => 'getToken',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['recordId'] = isset($data['recordId']) ? $data['recordId'] : null;
|
||||
$this->container['token'] = isset($data['token']) ? $data['token'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
* @param string $code 返回码
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
* @param string $message 未命名
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets recordId
|
||||
* @return string
|
||||
*/
|
||||
public function getRecordId()
|
||||
{
|
||||
return $this->container['recordId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets recordId
|
||||
* @param string $recordId 未命名
|
||||
* @return $this
|
||||
*/
|
||||
public function setRecordId($recordId)
|
||||
{
|
||||
$this->container['recordId'] = $recordId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets token
|
||||
* @return string
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return $this->container['token'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token
|
||||
* @param string $token 订单token
|
||||
* @return $this
|
||||
*/
|
||||
public function setToken($token)
|
||||
{
|
||||
$this->container['token'] = $token;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
327
lib/Service/Frontcashier/Model/BindpayConfirmRequest.php
Normal file
327
lib/Service/Frontcashier/Model/BindpayConfirmRequest.php
Normal file
@@ -0,0 +1,327 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class BindpayConfirmRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $token;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $version;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $verifyCode;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $cardno;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $owner;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $idno;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $phoneNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $ypMobile;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $avlidDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $cvv2;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $idCardType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $bankPWD;
|
||||
|
||||
/**
|
||||
* Gets token
|
||||
* @return string
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return $this->token;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token
|
||||
* @param string $token
|
||||
* @return BindpayConfirmRequest
|
||||
*/
|
||||
public function setToken($token)
|
||||
{
|
||||
$this->token = $token;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets version
|
||||
* @return string
|
||||
*/
|
||||
public function getVersion()
|
||||
{
|
||||
return $this->version;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets version
|
||||
* @param string $version
|
||||
* @return BindpayConfirmRequest
|
||||
*/
|
||||
public function setVersion($version)
|
||||
{
|
||||
$this->version = $version;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets verifyCode
|
||||
* @return string
|
||||
*/
|
||||
public function getVerifyCode()
|
||||
{
|
||||
return $this->verifyCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets verifyCode
|
||||
* @param string $verifyCode
|
||||
* @return BindpayConfirmRequest
|
||||
*/
|
||||
public function setVerifyCode($verifyCode)
|
||||
{
|
||||
$this->verifyCode = $verifyCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets cardno
|
||||
* @return string
|
||||
*/
|
||||
public function getCardno()
|
||||
{
|
||||
return $this->cardno;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cardno
|
||||
* @param string $cardno
|
||||
* @return BindpayConfirmRequest
|
||||
*/
|
||||
public function setCardno($cardno)
|
||||
{
|
||||
$this->cardno = $cardno;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets owner
|
||||
* @return string
|
||||
*/
|
||||
public function getOwner()
|
||||
{
|
||||
return $this->owner;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets owner
|
||||
* @param string $owner
|
||||
* @return BindpayConfirmRequest
|
||||
*/
|
||||
public function setOwner($owner)
|
||||
{
|
||||
$this->owner = $owner;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets idno
|
||||
* @return string
|
||||
*/
|
||||
public function getIdno()
|
||||
{
|
||||
return $this->idno;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idno
|
||||
* @param string $idno
|
||||
* @return BindpayConfirmRequest
|
||||
*/
|
||||
public function setIdno($idno)
|
||||
{
|
||||
$this->idno = $idno;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets phoneNo
|
||||
* @return string
|
||||
*/
|
||||
public function getPhoneNo()
|
||||
{
|
||||
return $this->phoneNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets phoneNo
|
||||
* @param string $phoneNo
|
||||
* @return BindpayConfirmRequest
|
||||
*/
|
||||
public function setPhoneNo($phoneNo)
|
||||
{
|
||||
$this->phoneNo = $phoneNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets ypMobile
|
||||
* @return string
|
||||
*/
|
||||
public function getYpMobile()
|
||||
{
|
||||
return $this->ypMobile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets ypMobile
|
||||
* @param string $ypMobile
|
||||
* @return BindpayConfirmRequest
|
||||
*/
|
||||
public function setYpMobile($ypMobile)
|
||||
{
|
||||
$this->ypMobile = $ypMobile;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets avlidDate
|
||||
* @return string
|
||||
*/
|
||||
public function getAvlidDate()
|
||||
{
|
||||
return $this->avlidDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets avlidDate
|
||||
* @param string $avlidDate
|
||||
* @return BindpayConfirmRequest
|
||||
*/
|
||||
public function setAvlidDate($avlidDate)
|
||||
{
|
||||
$this->avlidDate = $avlidDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets cvv2
|
||||
* @return string
|
||||
*/
|
||||
public function getCvv2()
|
||||
{
|
||||
return $this->cvv2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cvv2
|
||||
* @param string $cvv2
|
||||
* @return BindpayConfirmRequest
|
||||
*/
|
||||
public function setCvv2($cvv2)
|
||||
{
|
||||
$this->cvv2 = $cvv2;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets idCardType
|
||||
* @return string
|
||||
*/
|
||||
public function getIdCardType()
|
||||
{
|
||||
return $this->idCardType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idCardType
|
||||
* @param string $idCardType
|
||||
* @return BindpayConfirmRequest
|
||||
*/
|
||||
public function setIdCardType($idCardType)
|
||||
{
|
||||
$this->idCardType = $idCardType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankPWD
|
||||
* @return string
|
||||
*/
|
||||
public function getBankPWD()
|
||||
{
|
||||
return $this->bankPWD;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankPWD
|
||||
* @param string $bankPWD
|
||||
* @return BindpayConfirmRequest
|
||||
*/
|
||||
public function setBankPWD($bankPWD)
|
||||
{
|
||||
$this->bankPWD = $bankPWD;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'bindpayConfirm';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\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 BindpayConfirmRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindpayConfirmRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindpayConfirmRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindpayConfirmRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Frontcashier';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/frontcashier/bindpay/confirm';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param BindpayConfirmRequest $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->getToken() != null) {
|
||||
$internalRequest->addParameter('token',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getToken(), 'string'));
|
||||
}
|
||||
if ($request->getVersion() != null) {
|
||||
$internalRequest->addParameter('version',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getVersion(), 'string'));
|
||||
}
|
||||
if ($request->getVerifyCode() != null) {
|
||||
$internalRequest->addParameter('verifyCode',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getVerifyCode(), 'string'));
|
||||
}
|
||||
if ($request->getCardno() != null) {
|
||||
$internalRequest->addParameter('cardno',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getCardno(), 'string'));
|
||||
}
|
||||
if ($request->getOwner() != null) {
|
||||
$internalRequest->addParameter('owner',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getOwner(), 'string'));
|
||||
}
|
||||
if ($request->getIdno() != null) {
|
||||
$internalRequest->addParameter('idno',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getIdno(), 'string'));
|
||||
}
|
||||
if ($request->getPhoneNo() != null) {
|
||||
$internalRequest->addParameter('phoneNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getPhoneNo(), 'string'));
|
||||
}
|
||||
if ($request->getYpMobile() != null) {
|
||||
$internalRequest->addParameter('ypMobile',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getYpMobile(), 'string'));
|
||||
}
|
||||
if ($request->getAvlidDate() != null) {
|
||||
$internalRequest->addParameter('avlidDate',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getAvlidDate(), 'string'));
|
||||
}
|
||||
if ($request->getCvv2() != null) {
|
||||
$internalRequest->addParameter('cvv2',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getCvv2(), 'string'));
|
||||
}
|
||||
if ($request->getIdCardType() != null) {
|
||||
$internalRequest->addParameter('idCardType',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getIdCardType(), 'string'));
|
||||
}
|
||||
if ($request->getBankPWD() != null) {
|
||||
$internalRequest->addParameter('bankPWD',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getBankPWD(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BindpayConfirmRequestMarshaller::__init();
|
||||
36
lib/Service/Frontcashier/Model/BindpayConfirmResponse.php
Normal file
36
lib/Service/Frontcashier/Model/BindpayConfirmResponse.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class BindpayConfirmResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindpayConfirmApiBindPayConfirmResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\BindpayConfirmApiBindPayConfirmResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param BindpayConfirmApiBindPayConfirmResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindpayConfirmApiBindPayConfirmResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class BindpayConfirmResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindpayConfirmResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindpayConfirmResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindpayConfirmResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindpayConfirmResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new BindpayConfirmResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BindpayConfirmResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,482 @@
|
||||
<?php
|
||||
/**
|
||||
* BindpayRequestApiBindPayPaymentResponseDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
* <p>前置收银台</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\Frontcashier\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* BindpayRequestApiBindPayPaymentResponseDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class BindpayRequestApiBindPayPaymentResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'BindpayRequestApiBindPayPaymentResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'token' => 'string',
|
||||
'bindId' => 'string',
|
||||
'needItems' => 'string',
|
||||
'verifyCodeType' => 'string',
|
||||
'supplyNeedItemScene' => 'string',
|
||||
'recordId' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'merchantNo' => null,
|
||||
'token' => null,
|
||||
'bindId' => null,
|
||||
'needItems' => null,
|
||||
'verifyCodeType' => null,
|
||||
'supplyNeedItemScene' => null,
|
||||
'recordId' => null,
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'token' => 'token',
|
||||
'bindId' => 'bindId',
|
||||
'needItems' => 'needItems',
|
||||
'verifyCodeType' => 'verifyCodeType',
|
||||
'supplyNeedItemScene' => 'supplyNeedItemScene',
|
||||
'recordId' => 'recordId',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'token' => 'setToken',
|
||||
'bindId' => 'setBindId',
|
||||
'needItems' => 'setNeedItems',
|
||||
'verifyCodeType' => 'setVerifyCodeType',
|
||||
'supplyNeedItemScene' => 'setSupplyNeedItemScene',
|
||||
'recordId' => 'setRecordId',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'token' => 'getToken',
|
||||
'bindId' => 'getBindId',
|
||||
'needItems' => 'getNeedItems',
|
||||
'verifyCodeType' => 'getVerifyCodeType',
|
||||
'supplyNeedItemScene' => 'getSupplyNeedItemScene',
|
||||
'recordId' => 'getRecordId',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['token'] = isset($data['token']) ? $data['token'] : null;
|
||||
$this->container['bindId'] = isset($data['bindId']) ? $data['bindId'] : null;
|
||||
$this->container['needItems'] = isset($data['needItems']) ? $data['needItems'] : null;
|
||||
$this->container['verifyCodeType'] = isset($data['verifyCodeType']) ? $data['verifyCodeType'] : null;
|
||||
$this->container['supplyNeedItemScene'] = isset($data['supplyNeedItemScene']) ? $data['supplyNeedItemScene'] : null;
|
||||
$this->container['recordId'] = isset($data['recordId']) ? $data['recordId'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
* @param string $code 结果码
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
* @param string $message 信息描述
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets 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 token
|
||||
* @return string
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return $this->container['token'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token
|
||||
* @param string $token 订单token
|
||||
* @return $this
|
||||
*/
|
||||
public function setToken($token)
|
||||
{
|
||||
$this->container['token'] = $token;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bindId
|
||||
* @return string
|
||||
*/
|
||||
public function getBindId()
|
||||
{
|
||||
return $this->container['bindId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bindId
|
||||
* @param string $bindId 绑卡ID
|
||||
* @return $this
|
||||
*/
|
||||
public function setBindId($bindId)
|
||||
{
|
||||
$this->container['bindId'] = $bindId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets needItems
|
||||
* @return string
|
||||
*/
|
||||
public function getNeedItems()
|
||||
{
|
||||
return $this->container['needItems'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets needItems
|
||||
* @param string $needItems 需补充项名称的 集合,以\",\"分隔
|
||||
* @return $this
|
||||
*/
|
||||
public function setNeedItems($needItems)
|
||||
{
|
||||
$this->container['needItems'] = $needItems;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets verifyCodeType
|
||||
* @return string
|
||||
*/
|
||||
public function getVerifyCodeType()
|
||||
{
|
||||
return $this->container['verifyCodeType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets verifyCodeType
|
||||
* @param string $verifyCodeType 验证码类型
|
||||
* @return $this
|
||||
*/
|
||||
public function setVerifyCodeType($verifyCodeType)
|
||||
{
|
||||
$this->container['verifyCodeType'] = $verifyCodeType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets supplyNeedItemScene
|
||||
* @return string
|
||||
*/
|
||||
public function getSupplyNeedItemScene()
|
||||
{
|
||||
return $this->container['supplyNeedItemScene'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets supplyNeedItemScene
|
||||
* @param string $supplyNeedItemScene 提交补充项场景
|
||||
* @return $this
|
||||
*/
|
||||
public function setSupplyNeedItemScene($supplyNeedItemScene)
|
||||
{
|
||||
$this->container['supplyNeedItemScene'] = $supplyNeedItemScene;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets recordId
|
||||
* @return string
|
||||
*/
|
||||
public function getRecordId()
|
||||
{
|
||||
return $this->container['recordId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets recordId
|
||||
* @param string $recordId 未命名
|
||||
* @return $this
|
||||
*/
|
||||
public function setRecordId($recordId)
|
||||
{
|
||||
$this->container['recordId'] = $recordId;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
223
lib/Service/Frontcashier/Model/BindpayRequestRequest.php
Normal file
223
lib/Service/Frontcashier/Model/BindpayRequestRequest.php
Normal file
@@ -0,0 +1,223 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class BindpayRequestRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $token;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $bindId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userIp;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $version;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $extParamMap;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $payMerchantNo;
|
||||
|
||||
/**
|
||||
* Gets token
|
||||
* @return string
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return $this->token;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token
|
||||
* @param string $token
|
||||
* @return BindpayRequestRequest
|
||||
*/
|
||||
public function setToken($token)
|
||||
{
|
||||
$this->token = $token;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bindId
|
||||
* @return string
|
||||
*/
|
||||
public function getBindId()
|
||||
{
|
||||
return $this->bindId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bindId
|
||||
* @param string $bindId
|
||||
* @return BindpayRequestRequest
|
||||
*/
|
||||
public function setBindId($bindId)
|
||||
{
|
||||
$this->bindId = $bindId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets userNo
|
||||
* @return string
|
||||
*/
|
||||
public function getUserNo()
|
||||
{
|
||||
return $this->userNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userNo
|
||||
* @param string $userNo
|
||||
* @return BindpayRequestRequest
|
||||
*/
|
||||
public function setUserNo($userNo)
|
||||
{
|
||||
$this->userNo = $userNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets userType
|
||||
* @return string
|
||||
*/
|
||||
public function getUserType()
|
||||
{
|
||||
return $this->userType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userType
|
||||
* @param string $userType
|
||||
* @return BindpayRequestRequest
|
||||
*/
|
||||
public function setUserType($userType)
|
||||
{
|
||||
$this->userType = $userType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets userIp
|
||||
* @return string
|
||||
*/
|
||||
public function getUserIp()
|
||||
{
|
||||
return $this->userIp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userIp
|
||||
* @param string $userIp
|
||||
* @return BindpayRequestRequest
|
||||
*/
|
||||
public function setUserIp($userIp)
|
||||
{
|
||||
$this->userIp = $userIp;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets version
|
||||
* @return string
|
||||
*/
|
||||
public function getVersion()
|
||||
{
|
||||
return $this->version;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets version
|
||||
* @param string $version
|
||||
* @return BindpayRequestRequest
|
||||
*/
|
||||
public function setVersion($version)
|
||||
{
|
||||
$this->version = $version;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets extParamMap
|
||||
* @return string
|
||||
*/
|
||||
public function getExtParamMap()
|
||||
{
|
||||
return $this->extParamMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets extParamMap
|
||||
* @param string $extParamMap
|
||||
* @return BindpayRequestRequest
|
||||
*/
|
||||
public function setExtParamMap($extParamMap)
|
||||
{
|
||||
$this->extParamMap = $extParamMap;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets payMerchantNo
|
||||
* @return string
|
||||
*/
|
||||
public function getPayMerchantNo()
|
||||
{
|
||||
return $this->payMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payMerchantNo
|
||||
* @param string $payMerchantNo
|
||||
* @return BindpayRequestRequest
|
||||
*/
|
||||
public function setPayMerchantNo($payMerchantNo)
|
||||
{
|
||||
$this->payMerchantNo = $payMerchantNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'bindpayRequest';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\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 BindpayRequestRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindpayRequestRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindpayRequestRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindpayRequestRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Frontcashier';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/frontcashier/bindpay/request';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param BindpayRequestRequest $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->getToken() != null) {
|
||||
$internalRequest->addParameter('token',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getToken(), 'string'));
|
||||
}
|
||||
if ($request->getBindId() != null) {
|
||||
$internalRequest->addParameter('bindId',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getBindId(), 'string'));
|
||||
}
|
||||
if ($request->getUserNo() != null) {
|
||||
$internalRequest->addParameter('userNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getUserNo(), 'string'));
|
||||
}
|
||||
if ($request->getUserType() != null) {
|
||||
$internalRequest->addParameter('userType',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getUserType(), 'string'));
|
||||
}
|
||||
if ($request->getUserIp() != null) {
|
||||
$internalRequest->addParameter('userIp',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getUserIp(), 'string'));
|
||||
}
|
||||
if ($request->getVersion() != null) {
|
||||
$internalRequest->addParameter('version',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getVersion(), 'string'));
|
||||
}
|
||||
if ($request->getExtParamMap() != null) {
|
||||
$internalRequest->addParameter('extParamMap',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getExtParamMap(), 'string'));
|
||||
}
|
||||
if ($request->getPayMerchantNo() != null) {
|
||||
$internalRequest->addParameter('payMerchantNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getPayMerchantNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BindpayRequestRequestMarshaller::__init();
|
||||
36
lib/Service/Frontcashier/Model/BindpayRequestResponse.php
Normal file
36
lib/Service/Frontcashier/Model/BindpayRequestResponse.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class BindpayRequestResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindpayRequestApiBindPayPaymentResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\BindpayRequestApiBindPayPaymentResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param BindpayRequestApiBindPayPaymentResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindpayRequestApiBindPayPaymentResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class BindpayRequestResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindpayRequestResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindpayRequestResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindpayRequestResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindpayRequestResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new BindpayRequestResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BindpayRequestResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,347 @@
|
||||
<?php
|
||||
/**
|
||||
* BindpaySendsmsApiBindPaySendSmsResponseDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
* <p>前置收银台</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\Frontcashier\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* BindpaySendsmsApiBindPaySendSmsResponseDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class BindpaySendsmsApiBindPaySendSmsResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'BindpaySendsmsApiBindPaySendSmsResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'token' => 'string',
|
||||
'recordId' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'token' => null,
|
||||
'recordId' => null,
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'token' => 'token',
|
||||
'recordId' => 'recordId',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'token' => 'setToken',
|
||||
'recordId' => 'setRecordId',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'token' => 'getToken',
|
||||
'recordId' => 'getRecordId',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['token'] = isset($data['token']) ? $data['token'] : null;
|
||||
$this->container['recordId'] = isset($data['recordId']) ? $data['recordId'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
* @param string $code 返回码
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
* @param string $message 返回信息
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets token
|
||||
* @return string
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return $this->container['token'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token
|
||||
* @param string $token 订单token
|
||||
* @return $this
|
||||
*/
|
||||
public function setToken($token)
|
||||
{
|
||||
$this->container['token'] = $token;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets recordId
|
||||
* @return string
|
||||
*/
|
||||
public function getRecordId()
|
||||
{
|
||||
return $this->container['recordId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets recordId
|
||||
* @param string $recordId 未命名
|
||||
* @return $this
|
||||
*/
|
||||
public function setRecordId($recordId)
|
||||
{
|
||||
$this->container['recordId'] = $recordId;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
301
lib/Service/Frontcashier/Model/BindpaySendsmsRequest.php
Normal file
301
lib/Service/Frontcashier/Model/BindpaySendsmsRequest.php
Normal file
@@ -0,0 +1,301 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class BindpaySendsmsRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $token;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $version;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $cardno;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $owner;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $idno;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $phoneNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $ypMobile;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $avlidDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $cvv2;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $idCardType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $bankPWD;
|
||||
|
||||
/**
|
||||
* Gets token
|
||||
* @return string
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return $this->token;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token
|
||||
* @param string $token
|
||||
* @return BindpaySendsmsRequest
|
||||
*/
|
||||
public function setToken($token)
|
||||
{
|
||||
$this->token = $token;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets version
|
||||
* @return string
|
||||
*/
|
||||
public function getVersion()
|
||||
{
|
||||
return $this->version;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets version
|
||||
* @param string $version
|
||||
* @return BindpaySendsmsRequest
|
||||
*/
|
||||
public function setVersion($version)
|
||||
{
|
||||
$this->version = $version;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets cardno
|
||||
* @return string
|
||||
*/
|
||||
public function getCardno()
|
||||
{
|
||||
return $this->cardno;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cardno
|
||||
* @param string $cardno
|
||||
* @return BindpaySendsmsRequest
|
||||
*/
|
||||
public function setCardno($cardno)
|
||||
{
|
||||
$this->cardno = $cardno;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets owner
|
||||
* @return string
|
||||
*/
|
||||
public function getOwner()
|
||||
{
|
||||
return $this->owner;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets owner
|
||||
* @param string $owner
|
||||
* @return BindpaySendsmsRequest
|
||||
*/
|
||||
public function setOwner($owner)
|
||||
{
|
||||
$this->owner = $owner;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets idno
|
||||
* @return string
|
||||
*/
|
||||
public function getIdno()
|
||||
{
|
||||
return $this->idno;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idno
|
||||
* @param string $idno
|
||||
* @return BindpaySendsmsRequest
|
||||
*/
|
||||
public function setIdno($idno)
|
||||
{
|
||||
$this->idno = $idno;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets phoneNo
|
||||
* @return string
|
||||
*/
|
||||
public function getPhoneNo()
|
||||
{
|
||||
return $this->phoneNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets phoneNo
|
||||
* @param string $phoneNo
|
||||
* @return BindpaySendsmsRequest
|
||||
*/
|
||||
public function setPhoneNo($phoneNo)
|
||||
{
|
||||
$this->phoneNo = $phoneNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets ypMobile
|
||||
* @return string
|
||||
*/
|
||||
public function getYpMobile()
|
||||
{
|
||||
return $this->ypMobile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets ypMobile
|
||||
* @param string $ypMobile
|
||||
* @return BindpaySendsmsRequest
|
||||
*/
|
||||
public function setYpMobile($ypMobile)
|
||||
{
|
||||
$this->ypMobile = $ypMobile;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets avlidDate
|
||||
* @return string
|
||||
*/
|
||||
public function getAvlidDate()
|
||||
{
|
||||
return $this->avlidDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets avlidDate
|
||||
* @param string $avlidDate
|
||||
* @return BindpaySendsmsRequest
|
||||
*/
|
||||
public function setAvlidDate($avlidDate)
|
||||
{
|
||||
$this->avlidDate = $avlidDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets cvv2
|
||||
* @return string
|
||||
*/
|
||||
public function getCvv2()
|
||||
{
|
||||
return $this->cvv2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cvv2
|
||||
* @param string $cvv2
|
||||
* @return BindpaySendsmsRequest
|
||||
*/
|
||||
public function setCvv2($cvv2)
|
||||
{
|
||||
$this->cvv2 = $cvv2;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets idCardType
|
||||
* @return string
|
||||
*/
|
||||
public function getIdCardType()
|
||||
{
|
||||
return $this->idCardType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idCardType
|
||||
* @param string $idCardType
|
||||
* @return BindpaySendsmsRequest
|
||||
*/
|
||||
public function setIdCardType($idCardType)
|
||||
{
|
||||
$this->idCardType = $idCardType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankPWD
|
||||
* @return string
|
||||
*/
|
||||
public function getBankPWD()
|
||||
{
|
||||
return $this->bankPWD;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankPWD
|
||||
* @param string $bankPWD
|
||||
* @return BindpaySendsmsRequest
|
||||
*/
|
||||
public function setBankPWD($bankPWD)
|
||||
{
|
||||
$this->bankPWD = $bankPWD;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'bindpaySendsms';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\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 BindpaySendsmsRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindpaySendsmsRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindpaySendsmsRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindpaySendsmsRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Frontcashier';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/frontcashier/bindpay/sendsms';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param BindpaySendsmsRequest $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->getToken() != null) {
|
||||
$internalRequest->addParameter('token',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getToken(), 'string'));
|
||||
}
|
||||
if ($request->getVersion() != null) {
|
||||
$internalRequest->addParameter('version',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getVersion(), 'string'));
|
||||
}
|
||||
if ($request->getCardno() != null) {
|
||||
$internalRequest->addParameter('cardno',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getCardno(), 'string'));
|
||||
}
|
||||
if ($request->getOwner() != null) {
|
||||
$internalRequest->addParameter('owner',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getOwner(), 'string'));
|
||||
}
|
||||
if ($request->getIdno() != null) {
|
||||
$internalRequest->addParameter('idno',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getIdno(), 'string'));
|
||||
}
|
||||
if ($request->getPhoneNo() != null) {
|
||||
$internalRequest->addParameter('phoneNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getPhoneNo(), 'string'));
|
||||
}
|
||||
if ($request->getYpMobile() != null) {
|
||||
$internalRequest->addParameter('ypMobile',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getYpMobile(), 'string'));
|
||||
}
|
||||
if ($request->getAvlidDate() != null) {
|
||||
$internalRequest->addParameter('avlidDate',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getAvlidDate(), 'string'));
|
||||
}
|
||||
if ($request->getCvv2() != null) {
|
||||
$internalRequest->addParameter('cvv2',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getCvv2(), 'string'));
|
||||
}
|
||||
if ($request->getIdCardType() != null) {
|
||||
$internalRequest->addParameter('idCardType',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getIdCardType(), 'string'));
|
||||
}
|
||||
if ($request->getBankPWD() != null) {
|
||||
$internalRequest->addParameter('bankPWD',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getBankPWD(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BindpaySendsmsRequestMarshaller::__init();
|
||||
36
lib/Service/Frontcashier/Model/BindpaySendsmsResponse.php
Normal file
36
lib/Service/Frontcashier/Model/BindpaySendsmsResponse.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class BindpaySendsmsResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindpaySendsmsApiBindPaySendSmsResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\BindpaySendsmsApiBindPaySendSmsResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param BindpaySendsmsApiBindPaySendSmsResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindpaySendsmsApiBindPaySendSmsResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class BindpaySendsmsResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindpaySendsmsResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindpaySendsmsResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindpaySendsmsResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindpaySendsmsResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new BindpaySendsmsResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BindpaySendsmsResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,374 @@
|
||||
<?php
|
||||
/**
|
||||
* GetcardbinRecognizeCardBinResponseDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
* <p>前置收银台</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\Frontcashier\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* GetcardbinRecognizeCardBinResponseDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class GetcardbinRecognizeCardBinResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'GetcardbinRecognizeCardBinResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'bankCardType' => 'string',
|
||||
'bankName' => 'string',
|
||||
'bankCode' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'bankCardType' => null,
|
||||
'bankName' => null,
|
||||
'bankCode' => null,
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'bankCardType' => 'bankCardType',
|
||||
'bankName' => 'bankName',
|
||||
'bankCode' => 'bankCode',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'bankCardType' => 'setBankCardType',
|
||||
'bankName' => 'setBankName',
|
||||
'bankCode' => 'setBankCode',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'bankCardType' => 'getBankCardType',
|
||||
'bankName' => 'getBankName',
|
||||
'bankCode' => 'getBankCode',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['bankCardType'] = isset($data['bankCardType']) ? $data['bankCardType'] : null;
|
||||
$this->container['bankName'] = isset($data['bankName']) ? $data['bankName'] : null;
|
||||
$this->container['bankCode'] = isset($data['bankCode']) ? $data['bankCode'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
* @param string $code 返回码
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
* @param string $message 返回信息
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankCardType
|
||||
* @return string
|
||||
*/
|
||||
public function getBankCardType()
|
||||
{
|
||||
return $this->container['bankCardType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankCardType
|
||||
* @param string $bankCardType 银行卡类型
|
||||
* @return $this
|
||||
*/
|
||||
public function setBankCardType($bankCardType)
|
||||
{
|
||||
$this->container['bankCardType'] = $bankCardType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankName
|
||||
* @return string
|
||||
*/
|
||||
public function getBankName()
|
||||
{
|
||||
return $this->container['bankName'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankName
|
||||
* @param string $bankName 银行名称
|
||||
* @return $this
|
||||
*/
|
||||
public function setBankName($bankName)
|
||||
{
|
||||
$this->container['bankName'] = $bankName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankCode
|
||||
* @return string
|
||||
*/
|
||||
public function getBankCode()
|
||||
{
|
||||
return $this->container['bankCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankCode
|
||||
* @param string $bankCode 银行编码
|
||||
* @return $this
|
||||
*/
|
||||
public function setBankCode($bankCode)
|
||||
{
|
||||
$this->container['bankCode'] = $bankCode;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
41
lib/Service/Frontcashier/Model/GetcardbinRequest.php
Normal file
41
lib/Service/Frontcashier/Model/GetcardbinRequest.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class GetcardbinRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $bankCardNo;
|
||||
|
||||
/**
|
||||
* Gets bankCardNo
|
||||
* @return string
|
||||
*/
|
||||
public function getBankCardNo()
|
||||
{
|
||||
return $this->bankCardNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankCardNo
|
||||
* @param string $bankCardNo
|
||||
* @return GetcardbinRequest
|
||||
*/
|
||||
public function setBankCardNo($bankCardNo)
|
||||
{
|
||||
$this->bankCardNo = $bankCardNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'getcardbin';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\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 GetcardbinRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var GetcardbinRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new GetcardbinRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return GetcardbinRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Frontcashier';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/frontcashier/getcardbin';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param GetcardbinRequest $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'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
GetcardbinRequestMarshaller::__init();
|
||||
36
lib/Service/Frontcashier/Model/GetcardbinResponse.php
Normal file
36
lib/Service/Frontcashier/Model/GetcardbinResponse.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class GetcardbinResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var GetcardbinRecognizeCardBinResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\GetcardbinRecognizeCardBinResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param GetcardbinRecognizeCardBinResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return GetcardbinRecognizeCardBinResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class GetcardbinResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var GetcardbinResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new GetcardbinResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return GetcardbinResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return GetcardbinResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new GetcardbinResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
GetcardbinResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,455 @@
|
||||
<?php
|
||||
/**
|
||||
* YjzfBindpayrequestAPIYJZFBindPaymentResponseDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
* <p>前置收银台</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\Frontcashier\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* YjzfBindpayrequestAPIYJZFBindPaymentResponseDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class YjzfBindpayrequestAPIYJZFBindPaymentResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'YjzfBindpayrequestAPIYJZFBindPaymentResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'token' => 'string',
|
||||
'recordId' => 'string',
|
||||
'verifyCodeType' => 'string',
|
||||
'needItemScene' => 'string',
|
||||
'needItems' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'merchantNo' => null,
|
||||
'token' => null,
|
||||
'recordId' => null,
|
||||
'verifyCodeType' => null,
|
||||
'needItemScene' => null,
|
||||
'needItems' => null,
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'token' => 'token',
|
||||
'recordId' => 'recordId',
|
||||
'verifyCodeType' => 'verifyCodeType',
|
||||
'needItemScene' => 'needItemScene',
|
||||
'needItems' => 'needItems',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'token' => 'setToken',
|
||||
'recordId' => 'setRecordId',
|
||||
'verifyCodeType' => 'setVerifyCodeType',
|
||||
'needItemScene' => 'setNeedItemScene',
|
||||
'needItems' => 'setNeedItems',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'token' => 'getToken',
|
||||
'recordId' => 'getRecordId',
|
||||
'verifyCodeType' => 'getVerifyCodeType',
|
||||
'needItemScene' => 'getNeedItemScene',
|
||||
'needItems' => 'getNeedItems',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['token'] = isset($data['token']) ? $data['token'] : null;
|
||||
$this->container['recordId'] = isset($data['recordId']) ? $data['recordId'] : null;
|
||||
$this->container['verifyCodeType'] = isset($data['verifyCodeType']) ? $data['verifyCodeType'] : null;
|
||||
$this->container['needItemScene'] = isset($data['needItemScene']) ? $data['needItemScene'] : null;
|
||||
$this->container['needItems'] = isset($data['needItems']) ? $data['needItems'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
* @param string $code 返回码
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
* @param string $message 返回信息
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets 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 token
|
||||
* @return string
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return $this->container['token'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token
|
||||
* @param string $token 订单token
|
||||
* @return $this
|
||||
*/
|
||||
public function setToken($token)
|
||||
{
|
||||
$this->container['token'] = $token;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets recordId
|
||||
* @return string
|
||||
*/
|
||||
public function getRecordId()
|
||||
{
|
||||
return $this->container['recordId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets recordId
|
||||
* @param string $recordId 支付记录流水号
|
||||
* @return $this
|
||||
*/
|
||||
public function setRecordId($recordId)
|
||||
{
|
||||
$this->container['recordId'] = $recordId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets verifyCodeType
|
||||
* @return string
|
||||
*/
|
||||
public function getVerifyCodeType()
|
||||
{
|
||||
return $this->container['verifyCodeType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets verifyCodeType
|
||||
* @param string $verifyCodeType 验证码类型
|
||||
* @return $this
|
||||
*/
|
||||
public function setVerifyCodeType($verifyCodeType)
|
||||
{
|
||||
$this->container['verifyCodeType'] = $verifyCodeType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets needItemScene
|
||||
* @return string
|
||||
*/
|
||||
public function getNeedItemScene()
|
||||
{
|
||||
return $this->container['needItemScene'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets needItemScene
|
||||
* @param string $needItemScene 补充银行密码场景
|
||||
* @return $this
|
||||
*/
|
||||
public function setNeedItemScene($needItemScene)
|
||||
{
|
||||
$this->container['needItemScene'] = $needItemScene;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets needItems
|
||||
* @return string
|
||||
*/
|
||||
public function getNeedItems()
|
||||
{
|
||||
return $this->container['needItems'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets needItems
|
||||
* @param string $needItems 需补充项名称的集合
|
||||
* @return $this
|
||||
*/
|
||||
public function setNeedItems($needItems)
|
||||
{
|
||||
$this->container['needItems'] = $needItems;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
197
lib/Service/Frontcashier/Model/YjzfBindpayrequestRequest.php
Normal file
197
lib/Service/Frontcashier/Model/YjzfBindpayrequestRequest.php
Normal file
@@ -0,0 +1,197 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class YjzfBindpayrequestRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $bindId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userIp;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $paymentExt;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $token;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $version;
|
||||
|
||||
/**
|
||||
* Gets bindId
|
||||
* @return string
|
||||
*/
|
||||
public function getBindId()
|
||||
{
|
||||
return $this->bindId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bindId
|
||||
* @param string $bindId
|
||||
* @return YjzfBindpayrequestRequest
|
||||
*/
|
||||
public function setBindId($bindId)
|
||||
{
|
||||
$this->bindId = $bindId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets userNo
|
||||
* @return string
|
||||
*/
|
||||
public function getUserNo()
|
||||
{
|
||||
return $this->userNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userNo
|
||||
* @param string $userNo
|
||||
* @return YjzfBindpayrequestRequest
|
||||
*/
|
||||
public function setUserNo($userNo)
|
||||
{
|
||||
$this->userNo = $userNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets userType
|
||||
* @return string
|
||||
*/
|
||||
public function getUserType()
|
||||
{
|
||||
return $this->userType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userType
|
||||
* @param string $userType
|
||||
* @return YjzfBindpayrequestRequest
|
||||
*/
|
||||
public function setUserType($userType)
|
||||
{
|
||||
$this->userType = $userType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets userIp
|
||||
* @return string
|
||||
*/
|
||||
public function getUserIp()
|
||||
{
|
||||
return $this->userIp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userIp
|
||||
* @param string $userIp
|
||||
* @return YjzfBindpayrequestRequest
|
||||
*/
|
||||
public function setUserIp($userIp)
|
||||
{
|
||||
$this->userIp = $userIp;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets paymentExt
|
||||
* @return string
|
||||
*/
|
||||
public function getPaymentExt()
|
||||
{
|
||||
return $this->paymentExt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets paymentExt
|
||||
* @param string $paymentExt
|
||||
* @return YjzfBindpayrequestRequest
|
||||
*/
|
||||
public function setPaymentExt($paymentExt)
|
||||
{
|
||||
$this->paymentExt = $paymentExt;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets token
|
||||
* @return string
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return $this->token;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token
|
||||
* @param string $token
|
||||
* @return YjzfBindpayrequestRequest
|
||||
*/
|
||||
public function setToken($token)
|
||||
{
|
||||
$this->token = $token;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets version
|
||||
* @return string
|
||||
*/
|
||||
public function getVersion()
|
||||
{
|
||||
return $this->version;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets version
|
||||
* @param string $version
|
||||
* @return YjzfBindpayrequestRequest
|
||||
*/
|
||||
public function setVersion($version)
|
||||
{
|
||||
$this->version = $version;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'yjzfBindpayrequest';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\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 YjzfBindpayrequestRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var YjzfBindpayrequestRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new YjzfBindpayrequestRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return YjzfBindpayrequestRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Frontcashier';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/frontcashier/yjzf/bindpayrequest';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param YjzfBindpayrequestRequest $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->getBindId() != null) {
|
||||
$internalRequest->addParameter('bindId',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getBindId(), 'string'));
|
||||
}
|
||||
if ($request->getUserNo() != null) {
|
||||
$internalRequest->addParameter('userNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getUserNo(), 'string'));
|
||||
}
|
||||
if ($request->getUserType() != null) {
|
||||
$internalRequest->addParameter('userType',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getUserType(), 'string'));
|
||||
}
|
||||
if ($request->getUserIp() != null) {
|
||||
$internalRequest->addParameter('userIp',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getUserIp(), 'string'));
|
||||
}
|
||||
if ($request->getPaymentExt() != null) {
|
||||
$internalRequest->addParameter('paymentExt',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getPaymentExt(), 'string'));
|
||||
}
|
||||
if ($request->getToken() != null) {
|
||||
$internalRequest->addParameter('token',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getToken(), 'string'));
|
||||
}
|
||||
if ($request->getVersion() != null) {
|
||||
$internalRequest->addParameter('version',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getVersion(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
YjzfBindpayrequestRequestMarshaller::__init();
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class YjzfBindpayrequestResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var YjzfBindpayrequestAPIYJZFBindPaymentResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\YjzfBindpayrequestAPIYJZFBindPaymentResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param YjzfBindpayrequestAPIYJZFBindPaymentResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return YjzfBindpayrequestAPIYJZFBindPaymentResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class YjzfBindpayrequestResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var YjzfBindpayrequestResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new YjzfBindpayrequestResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return YjzfBindpayrequestResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return YjzfBindpayrequestResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new YjzfBindpayrequestResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
YjzfBindpayrequestResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,455 @@
|
||||
<?php
|
||||
/**
|
||||
* YjzfFirstpayrequestAPIYJZFFirstPaymentResponseDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
* <p>前置收银台</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\Frontcashier\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* YjzfFirstpayrequestAPIYJZFFirstPaymentResponseDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class YjzfFirstpayrequestAPIYJZFFirstPaymentResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'YjzfFirstpayrequestAPIYJZFFirstPaymentResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'token' => 'string',
|
||||
'recordId' => 'string',
|
||||
'verifyCodeType' => 'string',
|
||||
'needItemScene' => 'string',
|
||||
'needBankPWD' => 'bool',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'merchantNo' => null,
|
||||
'token' => null,
|
||||
'recordId' => null,
|
||||
'verifyCodeType' => null,
|
||||
'needItemScene' => null,
|
||||
'needBankPWD' => null,
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'token' => 'token',
|
||||
'recordId' => 'recordId',
|
||||
'verifyCodeType' => 'verifyCodeType',
|
||||
'needItemScene' => 'needItemScene',
|
||||
'needBankPWD' => 'needBankPWD',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'token' => 'setToken',
|
||||
'recordId' => 'setRecordId',
|
||||
'verifyCodeType' => 'setVerifyCodeType',
|
||||
'needItemScene' => 'setNeedItemScene',
|
||||
'needBankPWD' => 'setNeedBankPWD',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'token' => 'getToken',
|
||||
'recordId' => 'getRecordId',
|
||||
'verifyCodeType' => 'getVerifyCodeType',
|
||||
'needItemScene' => 'getNeedItemScene',
|
||||
'needBankPWD' => 'getNeedBankPWD',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['token'] = isset($data['token']) ? $data['token'] : null;
|
||||
$this->container['recordId'] = isset($data['recordId']) ? $data['recordId'] : null;
|
||||
$this->container['verifyCodeType'] = isset($data['verifyCodeType']) ? $data['verifyCodeType'] : null;
|
||||
$this->container['needItemScene'] = isset($data['needItemScene']) ? $data['needItemScene'] : null;
|
||||
$this->container['needBankPWD'] = isset($data['needBankPWD']) ? $data['needBankPWD'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
* @param string $code 返回码
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
* @param string $message 返回信息
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets 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 token
|
||||
* @return string
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return $this->container['token'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token
|
||||
* @param string $token 订单token
|
||||
* @return $this
|
||||
*/
|
||||
public function setToken($token)
|
||||
{
|
||||
$this->container['token'] = $token;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets recordId
|
||||
* @return string
|
||||
*/
|
||||
public function getRecordId()
|
||||
{
|
||||
return $this->container['recordId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets recordId
|
||||
* @param string $recordId 支付记录流水号
|
||||
* @return $this
|
||||
*/
|
||||
public function setRecordId($recordId)
|
||||
{
|
||||
$this->container['recordId'] = $recordId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets verifyCodeType
|
||||
* @return string
|
||||
*/
|
||||
public function getVerifyCodeType()
|
||||
{
|
||||
return $this->container['verifyCodeType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets verifyCodeType
|
||||
* @param string $verifyCodeType 验证码类型
|
||||
* @return $this
|
||||
*/
|
||||
public function setVerifyCodeType($verifyCodeType)
|
||||
{
|
||||
$this->container['verifyCodeType'] = $verifyCodeType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets needItemScene
|
||||
* @return string
|
||||
*/
|
||||
public function getNeedItemScene()
|
||||
{
|
||||
return $this->container['needItemScene'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets needItemScene
|
||||
* @param string $needItemScene 补充银行密码场景
|
||||
* @return $this
|
||||
*/
|
||||
public function setNeedItemScene($needItemScene)
|
||||
{
|
||||
$this->container['needItemScene'] = $needItemScene;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets needBankPWD
|
||||
* @return bool
|
||||
*/
|
||||
public function getNeedBankPWD()
|
||||
{
|
||||
return $this->container['needBankPWD'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets needBankPWD
|
||||
* @param bool $needBankPWD 是否需补充银行密码
|
||||
* @return $this
|
||||
*/
|
||||
public function setNeedBankPWD($needBankPWD)
|
||||
{
|
||||
$this->container['needBankPWD'] = $needBankPWD;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
327
lib/Service/Frontcashier/Model/YjzfFirstpayrequestRequest.php
Normal file
327
lib/Service/Frontcashier/Model/YjzfFirstpayrequestRequest.php
Normal file
@@ -0,0 +1,327 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class YjzfFirstpayrequestRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userIp;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $cardNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $owner;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $idNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $phoneNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $cvv;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $avlidDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $paymentExt;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $token;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $version;
|
||||
|
||||
/**
|
||||
* Gets userNo
|
||||
* @return string
|
||||
*/
|
||||
public function getUserNo()
|
||||
{
|
||||
return $this->userNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userNo
|
||||
* @param string $userNo
|
||||
* @return YjzfFirstpayrequestRequest
|
||||
*/
|
||||
public function setUserNo($userNo)
|
||||
{
|
||||
$this->userNo = $userNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets userType
|
||||
* @return string
|
||||
*/
|
||||
public function getUserType()
|
||||
{
|
||||
return $this->userType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userType
|
||||
* @param string $userType
|
||||
* @return YjzfFirstpayrequestRequest
|
||||
*/
|
||||
public function setUserType($userType)
|
||||
{
|
||||
$this->userType = $userType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets userIp
|
||||
* @return string
|
||||
*/
|
||||
public function getUserIp()
|
||||
{
|
||||
return $this->userIp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userIp
|
||||
* @param string $userIp
|
||||
* @return YjzfFirstpayrequestRequest
|
||||
*/
|
||||
public function setUserIp($userIp)
|
||||
{
|
||||
$this->userIp = $userIp;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets cardNo
|
||||
* @return string
|
||||
*/
|
||||
public function getCardNo()
|
||||
{
|
||||
return $this->cardNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cardNo
|
||||
* @param string $cardNo
|
||||
* @return YjzfFirstpayrequestRequest
|
||||
*/
|
||||
public function setCardNo($cardNo)
|
||||
{
|
||||
$this->cardNo = $cardNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets owner
|
||||
* @return string
|
||||
*/
|
||||
public function getOwner()
|
||||
{
|
||||
return $this->owner;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets owner
|
||||
* @param string $owner
|
||||
* @return YjzfFirstpayrequestRequest
|
||||
*/
|
||||
public function setOwner($owner)
|
||||
{
|
||||
$this->owner = $owner;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets idNo
|
||||
* @return string
|
||||
*/
|
||||
public function getIdNo()
|
||||
{
|
||||
return $this->idNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idNo
|
||||
* @param string $idNo
|
||||
* @return YjzfFirstpayrequestRequest
|
||||
*/
|
||||
public function setIdNo($idNo)
|
||||
{
|
||||
$this->idNo = $idNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets phoneNo
|
||||
* @return string
|
||||
*/
|
||||
public function getPhoneNo()
|
||||
{
|
||||
return $this->phoneNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets phoneNo
|
||||
* @param string $phoneNo
|
||||
* @return YjzfFirstpayrequestRequest
|
||||
*/
|
||||
public function setPhoneNo($phoneNo)
|
||||
{
|
||||
$this->phoneNo = $phoneNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets cvv
|
||||
* @return string
|
||||
*/
|
||||
public function getCvv()
|
||||
{
|
||||
return $this->cvv;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cvv
|
||||
* @param string $cvv
|
||||
* @return YjzfFirstpayrequestRequest
|
||||
*/
|
||||
public function setCvv($cvv)
|
||||
{
|
||||
$this->cvv = $cvv;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets avlidDate
|
||||
* @return string
|
||||
*/
|
||||
public function getAvlidDate()
|
||||
{
|
||||
return $this->avlidDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets avlidDate
|
||||
* @param string $avlidDate
|
||||
* @return YjzfFirstpayrequestRequest
|
||||
*/
|
||||
public function setAvlidDate($avlidDate)
|
||||
{
|
||||
$this->avlidDate = $avlidDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets paymentExt
|
||||
* @return string
|
||||
*/
|
||||
public function getPaymentExt()
|
||||
{
|
||||
return $this->paymentExt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets paymentExt
|
||||
* @param string $paymentExt
|
||||
* @return YjzfFirstpayrequestRequest
|
||||
*/
|
||||
public function setPaymentExt($paymentExt)
|
||||
{
|
||||
$this->paymentExt = $paymentExt;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets token
|
||||
* @return string
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return $this->token;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token
|
||||
* @param string $token
|
||||
* @return YjzfFirstpayrequestRequest
|
||||
*/
|
||||
public function setToken($token)
|
||||
{
|
||||
$this->token = $token;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets version
|
||||
* @return string
|
||||
*/
|
||||
public function getVersion()
|
||||
{
|
||||
return $this->version;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets version
|
||||
* @param string $version
|
||||
* @return YjzfFirstpayrequestRequest
|
||||
*/
|
||||
public function setVersion($version)
|
||||
{
|
||||
$this->version = $version;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'yjzfFirstpayrequest';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\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 YjzfFirstpayrequestRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var YjzfFirstpayrequestRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new YjzfFirstpayrequestRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return YjzfFirstpayrequestRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Frontcashier';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/frontcashier/yjzf/firstpayrequest';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param YjzfFirstpayrequestRequest $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->getUserNo() != null) {
|
||||
$internalRequest->addParameter('userNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getUserNo(), 'string'));
|
||||
}
|
||||
if ($request->getUserType() != null) {
|
||||
$internalRequest->addParameter('userType',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getUserType(), 'string'));
|
||||
}
|
||||
if ($request->getUserIp() != null) {
|
||||
$internalRequest->addParameter('userIp',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getUserIp(), 'string'));
|
||||
}
|
||||
if ($request->getCardNo() != null) {
|
||||
$internalRequest->addParameter('cardNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getCardNo(), 'string'));
|
||||
}
|
||||
if ($request->getOwner() != null) {
|
||||
$internalRequest->addParameter('owner',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getOwner(), 'string'));
|
||||
}
|
||||
if ($request->getIdNo() != null) {
|
||||
$internalRequest->addParameter('idNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getIdNo(), 'string'));
|
||||
}
|
||||
if ($request->getPhoneNo() != null) {
|
||||
$internalRequest->addParameter('phoneNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getPhoneNo(), 'string'));
|
||||
}
|
||||
if ($request->getCvv() != null) {
|
||||
$internalRequest->addParameter('cvv',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getCvv(), 'string'));
|
||||
}
|
||||
if ($request->getAvlidDate() != null) {
|
||||
$internalRequest->addParameter('avlidDate',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getAvlidDate(), 'string'));
|
||||
}
|
||||
if ($request->getPaymentExt() != null) {
|
||||
$internalRequest->addParameter('paymentExt',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getPaymentExt(), 'string'));
|
||||
}
|
||||
if ($request->getToken() != null) {
|
||||
$internalRequest->addParameter('token',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getToken(), 'string'));
|
||||
}
|
||||
if ($request->getVersion() != null) {
|
||||
$internalRequest->addParameter('version',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getVersion(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
YjzfFirstpayrequestRequestMarshaller::__init();
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class YjzfFirstpayrequestResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var YjzfFirstpayrequestAPIYJZFFirstPaymentResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\YjzfFirstpayrequestAPIYJZFFirstPaymentResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param YjzfFirstpayrequestAPIYJZFFirstPaymentResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return YjzfFirstpayrequestAPIYJZFFirstPaymentResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class YjzfFirstpayrequestResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var YjzfFirstpayrequestResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new YjzfFirstpayrequestResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return YjzfFirstpayrequestResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return YjzfFirstpayrequestResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new YjzfFirstpayrequestResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
YjzfFirstpayrequestResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,401 @@
|
||||
<?php
|
||||
/**
|
||||
* YjzfPaymentconfirmAPIYJZFConfirmPayResponseDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
* <p>前置收银台</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\Frontcashier\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* YjzfPaymentconfirmAPIYJZFConfirmPayResponseDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class YjzfPaymentconfirmAPIYJZFConfirmPayResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'YjzfPaymentconfirmAPIYJZFConfirmPayResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'token' => 'string',
|
||||
'recordId' => 'string',
|
||||
'bindId' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'merchantNo' => null,
|
||||
'token' => null,
|
||||
'recordId' => null,
|
||||
'bindId' => null,
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'token' => 'token',
|
||||
'recordId' => 'recordId',
|
||||
'bindId' => 'bindId',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'token' => 'setToken',
|
||||
'recordId' => 'setRecordId',
|
||||
'bindId' => 'setBindId',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'token' => 'getToken',
|
||||
'recordId' => 'getRecordId',
|
||||
'bindId' => 'getBindId',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['token'] = isset($data['token']) ? $data['token'] : null;
|
||||
$this->container['recordId'] = isset($data['recordId']) ? $data['recordId'] : null;
|
||||
$this->container['bindId'] = isset($data['bindId']) ? $data['bindId'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
* @param string $code 返回码
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
* @param string $message 返回信息
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets 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 token
|
||||
* @return string
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return $this->container['token'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token
|
||||
* @param string $token 订单token
|
||||
* @return $this
|
||||
*/
|
||||
public function setToken($token)
|
||||
{
|
||||
$this->container['token'] = $token;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets recordId
|
||||
* @return string
|
||||
*/
|
||||
public function getRecordId()
|
||||
{
|
||||
return $this->container['recordId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets recordId
|
||||
* @param string $recordId 支付记录流水号
|
||||
* @return $this
|
||||
*/
|
||||
public function setRecordId($recordId)
|
||||
{
|
||||
$this->container['recordId'] = $recordId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bindId
|
||||
* @return string
|
||||
*/
|
||||
public function getBindId()
|
||||
{
|
||||
return $this->container['bindId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bindId
|
||||
* @param string $bindId 绑卡ID
|
||||
* @return $this
|
||||
*/
|
||||
public function setBindId($bindId)
|
||||
{
|
||||
$this->container['bindId'] = $bindId;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
301
lib/Service/Frontcashier/Model/YjzfPaymentconfirmRequest.php
Normal file
301
lib/Service/Frontcashier/Model/YjzfPaymentconfirmRequest.php
Normal file
@@ -0,0 +1,301 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class YjzfPaymentconfirmRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $recordId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $verifyCode;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $owner;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $idNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $phoneNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $cvv;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $avlidDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $bankPWD;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $paymentExt;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $token;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $version;
|
||||
|
||||
/**
|
||||
* Gets recordId
|
||||
* @return string
|
||||
*/
|
||||
public function getRecordId()
|
||||
{
|
||||
return $this->recordId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets recordId
|
||||
* @param string $recordId
|
||||
* @return YjzfPaymentconfirmRequest
|
||||
*/
|
||||
public function setRecordId($recordId)
|
||||
{
|
||||
$this->recordId = $recordId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets verifyCode
|
||||
* @return string
|
||||
*/
|
||||
public function getVerifyCode()
|
||||
{
|
||||
return $this->verifyCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets verifyCode
|
||||
* @param string $verifyCode
|
||||
* @return YjzfPaymentconfirmRequest
|
||||
*/
|
||||
public function setVerifyCode($verifyCode)
|
||||
{
|
||||
$this->verifyCode = $verifyCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets owner
|
||||
* @return string
|
||||
*/
|
||||
public function getOwner()
|
||||
{
|
||||
return $this->owner;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets owner
|
||||
* @param string $owner
|
||||
* @return YjzfPaymentconfirmRequest
|
||||
*/
|
||||
public function setOwner($owner)
|
||||
{
|
||||
$this->owner = $owner;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets idNo
|
||||
* @return string
|
||||
*/
|
||||
public function getIdNo()
|
||||
{
|
||||
return $this->idNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idNo
|
||||
* @param string $idNo
|
||||
* @return YjzfPaymentconfirmRequest
|
||||
*/
|
||||
public function setIdNo($idNo)
|
||||
{
|
||||
$this->idNo = $idNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets phoneNo
|
||||
* @return string
|
||||
*/
|
||||
public function getPhoneNo()
|
||||
{
|
||||
return $this->phoneNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets phoneNo
|
||||
* @param string $phoneNo
|
||||
* @return YjzfPaymentconfirmRequest
|
||||
*/
|
||||
public function setPhoneNo($phoneNo)
|
||||
{
|
||||
$this->phoneNo = $phoneNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets cvv
|
||||
* @return string
|
||||
*/
|
||||
public function getCvv()
|
||||
{
|
||||
return $this->cvv;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cvv
|
||||
* @param string $cvv
|
||||
* @return YjzfPaymentconfirmRequest
|
||||
*/
|
||||
public function setCvv($cvv)
|
||||
{
|
||||
$this->cvv = $cvv;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets avlidDate
|
||||
* @return string
|
||||
*/
|
||||
public function getAvlidDate()
|
||||
{
|
||||
return $this->avlidDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets avlidDate
|
||||
* @param string $avlidDate
|
||||
* @return YjzfPaymentconfirmRequest
|
||||
*/
|
||||
public function setAvlidDate($avlidDate)
|
||||
{
|
||||
$this->avlidDate = $avlidDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankPWD
|
||||
* @return string
|
||||
*/
|
||||
public function getBankPWD()
|
||||
{
|
||||
return $this->bankPWD;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankPWD
|
||||
* @param string $bankPWD
|
||||
* @return YjzfPaymentconfirmRequest
|
||||
*/
|
||||
public function setBankPWD($bankPWD)
|
||||
{
|
||||
$this->bankPWD = $bankPWD;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets paymentExt
|
||||
* @return string
|
||||
*/
|
||||
public function getPaymentExt()
|
||||
{
|
||||
return $this->paymentExt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets paymentExt
|
||||
* @param string $paymentExt
|
||||
* @return YjzfPaymentconfirmRequest
|
||||
*/
|
||||
public function setPaymentExt($paymentExt)
|
||||
{
|
||||
$this->paymentExt = $paymentExt;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets token
|
||||
* @return string
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return $this->token;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token
|
||||
* @param string $token
|
||||
* @return YjzfPaymentconfirmRequest
|
||||
*/
|
||||
public function setToken($token)
|
||||
{
|
||||
$this->token = $token;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets version
|
||||
* @return string
|
||||
*/
|
||||
public function getVersion()
|
||||
{
|
||||
return $this->version;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets version
|
||||
* @param string $version
|
||||
* @return YjzfPaymentconfirmRequest
|
||||
*/
|
||||
public function setVersion($version)
|
||||
{
|
||||
$this->version = $version;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'yjzfPaymentconfirm';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\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 YjzfPaymentconfirmRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var YjzfPaymentconfirmRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new YjzfPaymentconfirmRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return YjzfPaymentconfirmRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Frontcashier';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/frontcashier/yjzf/paymentconfirm';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param YjzfPaymentconfirmRequest $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->getRecordId() != null) {
|
||||
$internalRequest->addParameter('recordId',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getRecordId(), 'string'));
|
||||
}
|
||||
if ($request->getVerifyCode() != null) {
|
||||
$internalRequest->addParameter('verifyCode',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getVerifyCode(), 'string'));
|
||||
}
|
||||
if ($request->getOwner() != null) {
|
||||
$internalRequest->addParameter('owner',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getOwner(), 'string'));
|
||||
}
|
||||
if ($request->getIdNo() != null) {
|
||||
$internalRequest->addParameter('idNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getIdNo(), 'string'));
|
||||
}
|
||||
if ($request->getPhoneNo() != null) {
|
||||
$internalRequest->addParameter('phoneNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getPhoneNo(), 'string'));
|
||||
}
|
||||
if ($request->getCvv() != null) {
|
||||
$internalRequest->addParameter('cvv',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getCvv(), 'string'));
|
||||
}
|
||||
if ($request->getAvlidDate() != null) {
|
||||
$internalRequest->addParameter('avlidDate',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getAvlidDate(), 'string'));
|
||||
}
|
||||
if ($request->getBankPWD() != null) {
|
||||
$internalRequest->addParameter('bankPWD',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getBankPWD(), 'string'));
|
||||
}
|
||||
if ($request->getPaymentExt() != null) {
|
||||
$internalRequest->addParameter('paymentExt',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getPaymentExt(), 'string'));
|
||||
}
|
||||
if ($request->getToken() != null) {
|
||||
$internalRequest->addParameter('token',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getToken(), 'string'));
|
||||
}
|
||||
if ($request->getVersion() != null) {
|
||||
$internalRequest->addParameter('version',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getVersion(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
YjzfPaymentconfirmRequestMarshaller::__init();
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class YjzfPaymentconfirmResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var YjzfPaymentconfirmAPIYJZFConfirmPayResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\YjzfPaymentconfirmAPIYJZFConfirmPayResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param YjzfPaymentconfirmAPIYJZFConfirmPayResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return YjzfPaymentconfirmAPIYJZFConfirmPayResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class YjzfPaymentconfirmResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var YjzfPaymentconfirmResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new YjzfPaymentconfirmResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return YjzfPaymentconfirmResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return YjzfPaymentconfirmResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new YjzfPaymentconfirmResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
YjzfPaymentconfirmResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,374 @@
|
||||
<?php
|
||||
/**
|
||||
* YjzfSendsmsAPIBasicResponseDTOResult
|
||||
* PHP version 5
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
* <p>前置收银台</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\Frontcashier\Model;
|
||||
|
||||
use ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* YjzfSendsmsAPIBasicResponseDTOResult Class Doc Comment
|
||||
* @author Swagger Codegen team
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @category Class
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class YjzfSendsmsAPIBasicResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'YjzfSendsmsAPIBasicResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'token' => 'string',
|
||||
'recordId' => 'string',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'merchantNo' => null,
|
||||
'token' => null,
|
||||
'recordId' => null,
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerTypes()
|
||||
{
|
||||
return self::$swaggerTypes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
* @return array
|
||||
*/
|
||||
public static function swaggerFormats()
|
||||
{
|
||||
return self::$swaggerFormats;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $attributeMap = [
|
||||
'code' => 'code',
|
||||
'message' => 'message',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'token' => 'token',
|
||||
'recordId' => 'recordId',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'token' => 'setToken',
|
||||
'recordId' => 'setRecordId',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'token' => 'getToken',
|
||||
'recordId' => 'getRecordId',
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes where the key is the local name,
|
||||
* and the value is the original name
|
||||
* @return array
|
||||
*/
|
||||
public static function attributeMap()
|
||||
{
|
||||
return self::$attributeMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
* @return array
|
||||
*/
|
||||
public static function setters()
|
||||
{
|
||||
return self::$setters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
* @return array
|
||||
*/
|
||||
public static function getters()
|
||||
{
|
||||
return self::$getters;
|
||||
}
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
* @return string
|
||||
*/
|
||||
public function getModelName()
|
||||
{
|
||||
return self::$swaggerModelName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Associative array for storing property values
|
||||
* @var mixed[]
|
||||
*/
|
||||
protected $container = [];
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param mixed[] $data Associated array of property values
|
||||
* initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
{
|
||||
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
|
||||
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
|
||||
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
|
||||
$this->container['token'] = isset($data['token']) ? $data['token'] : null;
|
||||
$this->container['recordId'] = isset($data['recordId']) ? $data['recordId'] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Show all the invalid properties with reasons.
|
||||
* @return array invalid properties with reasons
|
||||
*/
|
||||
public function listInvalidProperties()
|
||||
{
|
||||
$invalidProperties = [];
|
||||
|
||||
return $invalidProperties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate all the properties in the model
|
||||
* return true if all passed
|
||||
* @return bool True if all properties are valid
|
||||
*/
|
||||
public function valid()
|
||||
{
|
||||
return count($this->listInvalidProperties()) === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets code
|
||||
* @return string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->container['code'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets code
|
||||
* @param string $code 返回码
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->container['code'] = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets message
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->container['message'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets message
|
||||
* @param string $message 返回信息
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->container['message'] = $message;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets 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 token
|
||||
* @return string
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return $this->container['token'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token
|
||||
* @param string $token 订单token
|
||||
* @return $this
|
||||
*/
|
||||
public function setToken($token)
|
||||
{
|
||||
$this->container['token'] = $token;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets recordId
|
||||
* @return string
|
||||
*/
|
||||
public function getRecordId()
|
||||
{
|
||||
return $this->container['recordId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets recordId
|
||||
* @param string $recordId 支付记录流水号
|
||||
* @return $this
|
||||
*/
|
||||
public function setRecordId($recordId)
|
||||
{
|
||||
$this->container['recordId'] = $recordId;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
275
lib/Service/Frontcashier/Model/YjzfSendsmsRequest.php
Normal file
275
lib/Service/Frontcashier/Model/YjzfSendsmsRequest.php
Normal file
@@ -0,0 +1,275 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseRequest;
|
||||
|
||||
class YjzfSendsmsRequest extends BaseRequest
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $recordId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $owner;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $idNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $phoneNo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $cvv;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $avlidDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $bankPWD;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $paymentExt;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $token;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $version;
|
||||
|
||||
/**
|
||||
* Gets recordId
|
||||
* @return string
|
||||
*/
|
||||
public function getRecordId()
|
||||
{
|
||||
return $this->recordId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets recordId
|
||||
* @param string $recordId
|
||||
* @return YjzfSendsmsRequest
|
||||
*/
|
||||
public function setRecordId($recordId)
|
||||
{
|
||||
$this->recordId = $recordId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets owner
|
||||
* @return string
|
||||
*/
|
||||
public function getOwner()
|
||||
{
|
||||
return $this->owner;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets owner
|
||||
* @param string $owner
|
||||
* @return YjzfSendsmsRequest
|
||||
*/
|
||||
public function setOwner($owner)
|
||||
{
|
||||
$this->owner = $owner;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets idNo
|
||||
* @return string
|
||||
*/
|
||||
public function getIdNo()
|
||||
{
|
||||
return $this->idNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idNo
|
||||
* @param string $idNo
|
||||
* @return YjzfSendsmsRequest
|
||||
*/
|
||||
public function setIdNo($idNo)
|
||||
{
|
||||
$this->idNo = $idNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets phoneNo
|
||||
* @return string
|
||||
*/
|
||||
public function getPhoneNo()
|
||||
{
|
||||
return $this->phoneNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets phoneNo
|
||||
* @param string $phoneNo
|
||||
* @return YjzfSendsmsRequest
|
||||
*/
|
||||
public function setPhoneNo($phoneNo)
|
||||
{
|
||||
$this->phoneNo = $phoneNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets cvv
|
||||
* @return string
|
||||
*/
|
||||
public function getCvv()
|
||||
{
|
||||
return $this->cvv;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cvv
|
||||
* @param string $cvv
|
||||
* @return YjzfSendsmsRequest
|
||||
*/
|
||||
public function setCvv($cvv)
|
||||
{
|
||||
$this->cvv = $cvv;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets avlidDate
|
||||
* @return string
|
||||
*/
|
||||
public function getAvlidDate()
|
||||
{
|
||||
return $this->avlidDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets avlidDate
|
||||
* @param string $avlidDate
|
||||
* @return YjzfSendsmsRequest
|
||||
*/
|
||||
public function setAvlidDate($avlidDate)
|
||||
{
|
||||
$this->avlidDate = $avlidDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankPWD
|
||||
* @return string
|
||||
*/
|
||||
public function getBankPWD()
|
||||
{
|
||||
return $this->bankPWD;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankPWD
|
||||
* @param string $bankPWD
|
||||
* @return YjzfSendsmsRequest
|
||||
*/
|
||||
public function setBankPWD($bankPWD)
|
||||
{
|
||||
$this->bankPWD = $bankPWD;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets paymentExt
|
||||
* @return string
|
||||
*/
|
||||
public function getPaymentExt()
|
||||
{
|
||||
return $this->paymentExt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets paymentExt
|
||||
* @param string $paymentExt
|
||||
* @return YjzfSendsmsRequest
|
||||
*/
|
||||
public function setPaymentExt($paymentExt)
|
||||
{
|
||||
$this->paymentExt = $paymentExt;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets token
|
||||
* @return string
|
||||
*/
|
||||
public function getToken()
|
||||
{
|
||||
return $this->token;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets token
|
||||
* @param string $token
|
||||
* @return YjzfSendsmsRequest
|
||||
*/
|
||||
public function setToken($token)
|
||||
{
|
||||
$this->token = $token;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets version
|
||||
* @return string
|
||||
*/
|
||||
public function getVersion()
|
||||
{
|
||||
return $this->version;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets version
|
||||
* @param string $version
|
||||
* @return YjzfSendsmsRequest
|
||||
*/
|
||||
public function setVersion($version)
|
||||
{
|
||||
$this->version = $version;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'yjzfSendsms';
|
||||
}
|
||||
|
||||
}
|
||||
117
lib/Service/Frontcashier/Model/YjzfSendsmsRequestMarshaller.php
Normal file
117
lib/Service/Frontcashier/Model/YjzfSendsmsRequestMarshaller.php
Normal file
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\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 YjzfSendsmsRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var YjzfSendsmsRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new YjzfSendsmsRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return YjzfSendsmsRequestMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $serviceName = 'Frontcashier';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $httpMethod = 'POST';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $resourcePath = '/rest/v1.0/frontcashier/yjzf/sendsms';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
/**
|
||||
* @param YjzfSendsmsRequest $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->getRecordId() != null) {
|
||||
$internalRequest->addParameter('recordId',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getRecordId(), 'string'));
|
||||
}
|
||||
if ($request->getOwner() != null) {
|
||||
$internalRequest->addParameter('owner',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getOwner(), 'string'));
|
||||
}
|
||||
if ($request->getIdNo() != null) {
|
||||
$internalRequest->addParameter('idNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getIdNo(), 'string'));
|
||||
}
|
||||
if ($request->getPhoneNo() != null) {
|
||||
$internalRequest->addParameter('phoneNo',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getPhoneNo(), 'string'));
|
||||
}
|
||||
if ($request->getCvv() != null) {
|
||||
$internalRequest->addParameter('cvv',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getCvv(), 'string'));
|
||||
}
|
||||
if ($request->getAvlidDate() != null) {
|
||||
$internalRequest->addParameter('avlidDate',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getAvlidDate(), 'string'));
|
||||
}
|
||||
if ($request->getBankPWD() != null) {
|
||||
$internalRequest->addParameter('bankPWD',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getBankPWD(), 'string'));
|
||||
}
|
||||
if ($request->getPaymentExt() != null) {
|
||||
$internalRequest->addParameter('paymentExt',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getPaymentExt(), 'string'));
|
||||
}
|
||||
if ($request->getToken() != null) {
|
||||
$internalRequest->addParameter('token',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getToken(), 'string'));
|
||||
}
|
||||
if ($request->getVersion() != null) {
|
||||
$internalRequest->addParameter('version',
|
||||
ObjectSerializer::sanitizeForSerialization($request->getVersion(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
YjzfSendsmsRequestMarshaller::__init();
|
||||
36
lib/Service/Frontcashier/Model/YjzfSendsmsResponse.php
Normal file
36
lib/Service/Frontcashier/Model/YjzfSendsmsResponse.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\BaseResponse;
|
||||
|
||||
class YjzfSendsmsResponse extends BaseResponse
|
||||
{
|
||||
|
||||
/**
|
||||
* @var YjzfSendsmsAPIBasicResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\YjzfSendsmsAPIBasicResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param YjzfSendsmsAPIBasicResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return YjzfSendsmsAPIBasicResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class YjzfSendsmsResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var YjzfSendsmsResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new YjzfSendsmsResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return YjzfSendsmsResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return YjzfSendsmsResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new YjzfSendsmsResponse();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
YjzfSendsmsResponseUnMarshaller::__init();
|
||||
Reference in New Issue
Block a user