增加聚合支付托管下单
This commit is contained in:
@@ -0,0 +1,452 @@
|
||||
<?php
|
||||
/**
|
||||
* AgreementNosmsbindAgreementBindCardResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
*
|
||||
* <p>前置收银台</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* AgreementNosmsbindAgreementBindCardResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class AgreementNosmsbindAgreementBindCardResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'AgreementNosmsbindAgreementBindCardResponseDTOResult';
|
||||
|
||||
/**
|
||||
* 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',
|
||||
'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,
|
||||
'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',
|
||||
'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',
|
||||
'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',
|
||||
'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['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 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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
267
lib/Service/Frontcashier/Model/AgreementNosmsbindRequest.php
Normal file
267
lib/Service/Frontcashier/Model/AgreementNosmsbindRequest.php
Normal file
@@ -0,0 +1,267 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class AgreementNosmsbindRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantFlowId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $bankCardNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $idCardNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $idCardType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userName;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $phone;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $cvv;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $valid;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
|
||||
/**
|
||||
* Gets merchantFlowId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantFlowId()
|
||||
{
|
||||
return $this->merchantFlowId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantFlowId
|
||||
*
|
||||
* @param string $merchantFlowId
|
||||
* @return AgreementNosmsbindRequest
|
||||
*/
|
||||
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 AgreementNosmsbindRequest
|
||||
*/
|
||||
public function setUserNo($userNo)
|
||||
{
|
||||
$this->userNo = $userNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets bankCardNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBankCardNo()
|
||||
{
|
||||
return $this->bankCardNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankCardNo
|
||||
*
|
||||
* @param string $bankCardNo
|
||||
* @return AgreementNosmsbindRequest
|
||||
*/
|
||||
public function setBankCardNo($bankCardNo)
|
||||
{
|
||||
$this->bankCardNo = $bankCardNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets idCardNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getIdCardNo()
|
||||
{
|
||||
return $this->idCardNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idCardNo
|
||||
*
|
||||
* @param string $idCardNo
|
||||
* @return AgreementNosmsbindRequest
|
||||
*/
|
||||
public function setIdCardNo($idCardNo)
|
||||
{
|
||||
$this->idCardNo = $idCardNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets idCardType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getIdCardType()
|
||||
{
|
||||
return $this->idCardType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idCardType
|
||||
*
|
||||
* @param string $idCardType
|
||||
* @return AgreementNosmsbindRequest
|
||||
*/
|
||||
public function setIdCardType($idCardType)
|
||||
{
|
||||
$this->idCardType = $idCardType;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets userName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUserName()
|
||||
{
|
||||
return $this->userName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userName
|
||||
*
|
||||
* @param string $userName
|
||||
* @return AgreementNosmsbindRequest
|
||||
*/
|
||||
public function setUserName($userName)
|
||||
{
|
||||
$this->userName = $userName;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets phone
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPhone()
|
||||
{
|
||||
return $this->phone;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets phone
|
||||
*
|
||||
* @param string $phone
|
||||
* @return AgreementNosmsbindRequest
|
||||
*/
|
||||
public function setPhone($phone)
|
||||
{
|
||||
$this->phone = $phone;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets cvv
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCvv()
|
||||
{
|
||||
return $this->cvv;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cvv
|
||||
*
|
||||
* @param string $cvv
|
||||
* @return AgreementNosmsbindRequest
|
||||
*/
|
||||
public function setCvv($cvv)
|
||||
{
|
||||
$this->cvv = $cvv;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets valid
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getValid()
|
||||
{
|
||||
return $this->valid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets valid
|
||||
*
|
||||
* @param string $valid
|
||||
* @return AgreementNosmsbindRequest
|
||||
*/
|
||||
public function setValid($valid)
|
||||
{
|
||||
$this->valid = $valid;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return AgreementNosmsbindRequest
|
||||
*/
|
||||
public function setParentMerchantNo($parentMerchantNo)
|
||||
{
|
||||
$this->parentMerchantNo = $parentMerchantNo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'agreementNosmsbind';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
<?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 AgreementNosmsbindRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var AgreementNosmsbindRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AgreementNosmsbindRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementNosmsbindRequestMarshaller
|
||||
*/
|
||||
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/agreement/nosmsbind';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param AgreementNosmsbindRequest $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->getMerchantFlowId() != null){
|
||||
$internalRequest->addParameter('merchantFlowId', ObjectSerializer::sanitizeForSerialization($request->getMerchantFlowId(), 'string'));
|
||||
}
|
||||
if($request->getUserNo() != null){
|
||||
$internalRequest->addParameter('userNo', ObjectSerializer::sanitizeForSerialization($request->getUserNo(), 'string'));
|
||||
}
|
||||
if($request->getBankCardNo() != null){
|
||||
$internalRequest->addParameter('bankCardNo', ObjectSerializer::sanitizeForSerialization($request->getBankCardNo(), 'string'));
|
||||
}
|
||||
if($request->getIdCardNo() != null){
|
||||
$internalRequest->addParameter('idCardNo', ObjectSerializer::sanitizeForSerialization($request->getIdCardNo(), 'string'));
|
||||
}
|
||||
if($request->getIdCardType() != null){
|
||||
$internalRequest->addParameter('idCardType', ObjectSerializer::sanitizeForSerialization($request->getIdCardType(), 'string'));
|
||||
}
|
||||
if($request->getUserName() != null){
|
||||
$internalRequest->addParameter('userName', ObjectSerializer::sanitizeForSerialization($request->getUserName(), 'string'));
|
||||
}
|
||||
if($request->getPhone() != null){
|
||||
$internalRequest->addParameter('phone', ObjectSerializer::sanitizeForSerialization($request->getPhone(), 'string', 'mobile'));
|
||||
}
|
||||
if($request->getCvv() != null){
|
||||
$internalRequest->addParameter('cvv', ObjectSerializer::sanitizeForSerialization($request->getCvv(), 'string'));
|
||||
}
|
||||
if($request->getValid() != null){
|
||||
$internalRequest->addParameter('valid', ObjectSerializer::sanitizeForSerialization($request->getValid(), 'string'));
|
||||
}
|
||||
if($request->getParentMerchantNo() != null){
|
||||
$internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
AgreementNosmsbindRequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class AgreementNosmsbindResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var AgreementNosmsbindAgreementBindCardResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\AgreementNosmsbindAgreementBindCardResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param AgreementNosmsbindAgreementBindCardResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementNosmsbindAgreementBindCardResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class AgreementNosmsbindResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var AgreementNosmsbindResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new AgreementNosmsbindResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementNosmsbindResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return AgreementNosmsbindResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new AgreementNosmsbindResponse();
|
||||
}
|
||||
}
|
||||
|
||||
AgreementNosmsbindResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,512 @@
|
||||
<?php
|
||||
/**
|
||||
* BindcardConfirmV2OpenAuthBindCardConfirmResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
*
|
||||
* <p>前置收银台</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* BindcardConfirmV2OpenAuthBindCardConfirmResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class BindcardConfirmV2OpenAuthBindCardConfirmResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'BindcardConfirmV2OpenAuthBindCardConfirmResponseDTOResult';
|
||||
|
||||
/**
|
||||
* 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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
117
lib/Service/Frontcashier/Model/BindcardConfirmV2Request.php
Normal file
117
lib/Service/Frontcashier/Model/BindcardConfirmV2Request.php
Normal file
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class BindcardConfirmV2Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantFlowId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $smsCode;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return BindcardConfirmV2Request
|
||||
*/
|
||||
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 BindcardConfirmV2Request
|
||||
*/
|
||||
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 BindcardConfirmV2Request
|
||||
*/
|
||||
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 BindcardConfirmV2Request
|
||||
*/
|
||||
public function setSmsCode($smsCode)
|
||||
{
|
||||
$this->smsCode = $smsCode;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'bindcardConfirmV2';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -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 BindcardConfirmV2RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var BindcardConfirmV2RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardConfirmV2RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardConfirmV2RequestMarshaller
|
||||
*/
|
||||
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 BindcardConfirmV2Request $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->getSmsCode() != null){
|
||||
$internalRequest->addParameter('smsCode', ObjectSerializer::sanitizeForSerialization($request->getSmsCode(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
BindcardConfirmV2RequestMarshaller::__init();
|
||||
34
lib/Service/Frontcashier/Model/BindcardConfirmV2Response.php
Normal file
34
lib/Service/Frontcashier/Model/BindcardConfirmV2Response.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class BindcardConfirmV2Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var BindcardConfirmV2OpenAuthBindCardConfirmResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\BindcardConfirmV2OpenAuthBindCardConfirmResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param BindcardConfirmV2OpenAuthBindCardConfirmResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardConfirmV2OpenAuthBindCardConfirmResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class BindcardConfirmV2ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardConfirmV2ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardConfirmV2ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardConfirmV2ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardConfirmV2Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new BindcardConfirmV2Response();
|
||||
}
|
||||
}
|
||||
|
||||
BindcardConfirmV2ResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,933 @@
|
||||
<?php
|
||||
/**
|
||||
* BindcardPayerrequestOpenPayerAuthBindCardRequestDTOParam
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
*
|
||||
* <p>前置收银台</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* BindcardPayerrequestOpenPayerAuthBindCardRequestDTOParam Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description 方法签名第0个参数,请自行修改arg0等参数的名字
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class BindcardPayerrequestOpenPayerAuthBindCardRequestDTOParam implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'BindcardPayerrequestOpenPayerAuthBindCardRequestDTOParam';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'parentMerchantNo' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'merchantFlowId' => 'string',
|
||||
'bindCallBackUrl' => 'string',
|
||||
'userNo' => 'string',
|
||||
'userType' => 'string',
|
||||
'bankCardNo' => 'string',
|
||||
'userName' => 'string',
|
||||
'idCardNo' => 'string',
|
||||
'phone' => 'string',
|
||||
'cvv2' => 'string',
|
||||
'validthru' => 'string',
|
||||
'riskParamExt' => 'string',
|
||||
'orderValidate' => 'int',
|
||||
'authType' => 'string',
|
||||
'empower' => 'bool',
|
||||
'cardType' => 'string',
|
||||
'authScene' => 'string',
|
||||
'pageNotifyUrl' => 'string',
|
||||
'appKey' => 'string',
|
||||
'idCardType' => 'string',
|
||||
'sendSms' => 'bool'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'parentMerchantNo' => null,
|
||||
'merchantNo' => null,
|
||||
'merchantFlowId' => null,
|
||||
'bindCallBackUrl' => null,
|
||||
'userNo' => null,
|
||||
'userType' => null,
|
||||
'bankCardNo' => null,
|
||||
'userName' => null,
|
||||
'idCardNo' => null,
|
||||
'phone' => null,
|
||||
'cvv2' => null,
|
||||
'validthru' => null,
|
||||
'riskParamExt' => null,
|
||||
'orderValidate' => 'int32',
|
||||
'authType' => null,
|
||||
'empower' => null,
|
||||
'cardType' => null,
|
||||
'authScene' => null,
|
||||
'pageNotifyUrl' => null,
|
||||
'appKey' => null,
|
||||
'idCardType' => null,
|
||||
'sendSms' => 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 = [
|
||||
'parentMerchantNo' => 'parentMerchantNo',
|
||||
'merchantNo' => 'merchantNo',
|
||||
'merchantFlowId' => 'merchantFlowId',
|
||||
'bindCallBackUrl' => 'bindCallBackUrl',
|
||||
'userNo' => 'userNo',
|
||||
'userType' => 'userType',
|
||||
'bankCardNo' => 'bankCardNo',
|
||||
'userName' => 'userName',
|
||||
'idCardNo' => 'idCardNo',
|
||||
'phone' => 'phone',
|
||||
'cvv2' => 'cvv2',
|
||||
'validthru' => 'validthru',
|
||||
'riskParamExt' => 'riskParamExt',
|
||||
'orderValidate' => 'orderValidate',
|
||||
'authType' => 'authType',
|
||||
'empower' => 'empower',
|
||||
'cardType' => 'cardType',
|
||||
'authScene' => 'authScene',
|
||||
'pageNotifyUrl' => 'pageNotifyUrl',
|
||||
'appKey' => 'appKey',
|
||||
'idCardType' => 'idCardType',
|
||||
'sendSms' => 'sendSms'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'parentMerchantNo' => 'setParentMerchantNo',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'merchantFlowId' => 'setMerchantFlowId',
|
||||
'bindCallBackUrl' => 'setBindCallBackUrl',
|
||||
'userNo' => 'setUserNo',
|
||||
'userType' => 'setUserType',
|
||||
'bankCardNo' => 'setBankCardNo',
|
||||
'userName' => 'setUserName',
|
||||
'idCardNo' => 'setIdCardNo',
|
||||
'phone' => 'setPhone',
|
||||
'cvv2' => 'setCvv2',
|
||||
'validthru' => 'setValidthru',
|
||||
'riskParamExt' => 'setRiskParamExt',
|
||||
'orderValidate' => 'setOrderValidate',
|
||||
'authType' => 'setAuthType',
|
||||
'empower' => 'setEmpower',
|
||||
'cardType' => 'setCardType',
|
||||
'authScene' => 'setAuthScene',
|
||||
'pageNotifyUrl' => 'setPageNotifyUrl',
|
||||
'appKey' => 'setAppKey',
|
||||
'idCardType' => 'setIdCardType',
|
||||
'sendSms' => 'setSendSms'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'parentMerchantNo' => 'getParentMerchantNo',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'merchantFlowId' => 'getMerchantFlowId',
|
||||
'bindCallBackUrl' => 'getBindCallBackUrl',
|
||||
'userNo' => 'getUserNo',
|
||||
'userType' => 'getUserType',
|
||||
'bankCardNo' => 'getBankCardNo',
|
||||
'userName' => 'getUserName',
|
||||
'idCardNo' => 'getIdCardNo',
|
||||
'phone' => 'getPhone',
|
||||
'cvv2' => 'getCvv2',
|
||||
'validthru' => 'getValidthru',
|
||||
'riskParamExt' => 'getRiskParamExt',
|
||||
'orderValidate' => 'getOrderValidate',
|
||||
'authType' => 'getAuthType',
|
||||
'empower' => 'getEmpower',
|
||||
'cardType' => 'getCardType',
|
||||
'authScene' => 'getAuthScene',
|
||||
'pageNotifyUrl' => 'getPageNotifyUrl',
|
||||
'appKey' => 'getAppKey',
|
||||
'idCardType' => 'getIdCardType',
|
||||
'sendSms' => 'getSendSms'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['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['bindCallBackUrl'] = isset($data['bindCallBackUrl']) ? $data['bindCallBackUrl'] : null;
|
||||
$this->container['userNo'] = isset($data['userNo']) ? $data['userNo'] : null;
|
||||
$this->container['userType'] = isset($data['userType']) ? $data['userType'] : 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['phone'] = isset($data['phone']) ? $data['phone'] : null;
|
||||
$this->container['cvv2'] = isset($data['cvv2']) ? $data['cvv2'] : null;
|
||||
$this->container['validthru'] = isset($data['validthru']) ? $data['validthru'] : null;
|
||||
$this->container['riskParamExt'] = isset($data['riskParamExt']) ? $data['riskParamExt'] : null;
|
||||
$this->container['orderValidate'] = isset($data['orderValidate']) ? $data['orderValidate'] : null;
|
||||
$this->container['authType'] = isset($data['authType']) ? $data['authType'] : null;
|
||||
$this->container['empower'] = isset($data['empower']) ? $data['empower'] : null;
|
||||
$this->container['cardType'] = isset($data['cardType']) ? $data['cardType'] : null;
|
||||
$this->container['authScene'] = isset($data['authScene']) ? $data['authScene'] : null;
|
||||
$this->container['pageNotifyUrl'] = isset($data['pageNotifyUrl']) ? $data['pageNotifyUrl'] : null;
|
||||
$this->container['appKey'] = isset($data['appKey']) ? $data['appKey'] : null;
|
||||
$this->container['idCardType'] = isset($data['idCardType']) ? $data['idCardType'] : null;
|
||||
$this->container['sendSms'] = isset($data['sendSms']) ? $data['sendSms'] : 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 parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->container['parentMerchantNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo 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 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 merchantFlowId
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantFlowId($merchantFlowId)
|
||||
{
|
||||
$this->container['merchantFlowId'] = $merchantFlowId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bindCallBackUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBindCallBackUrl()
|
||||
{
|
||||
return $this->container['bindCallBackUrl'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bindCallBackUrl
|
||||
*
|
||||
* @param string $bindCallBackUrl bindCallBackUrl
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBindCallBackUrl($bindCallBackUrl)
|
||||
{
|
||||
$this->container['bindCallBackUrl'] = $bindCallBackUrl;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets userNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUserNo()
|
||||
{
|
||||
return $this->container['userNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userNo
|
||||
*
|
||||
* @param string $userNo 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 userType
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUserType($userType)
|
||||
{
|
||||
$this->container['userType'] = $userType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets bankCardNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBankCardNo()
|
||||
{
|
||||
return $this->container['bankCardNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankCardNo
|
||||
*
|
||||
* @param string $bankCardNo 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 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 idCardNo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setIdCardNo($idCardNo)
|
||||
{
|
||||
$this->container['idCardNo'] = $idCardNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets phone
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPhone()
|
||||
{
|
||||
return $this->container['phone'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets phone
|
||||
*
|
||||
* @param string $phone phone
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPhone($phone)
|
||||
{
|
||||
$this->container['phone'] = $phone;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets cvv2
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCvv2()
|
||||
{
|
||||
return $this->container['cvv2'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cvv2
|
||||
*
|
||||
* @param string $cvv2 cvv2
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCvv2($cvv2)
|
||||
{
|
||||
$this->container['cvv2'] = $cvv2;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets validthru
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getValidthru()
|
||||
{
|
||||
return $this->container['validthru'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets validthru
|
||||
*
|
||||
* @param string $validthru validthru
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setValidthru($validthru)
|
||||
{
|
||||
$this->container['validthru'] = $validthru;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets riskParamExt
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRiskParamExt()
|
||||
{
|
||||
return $this->container['riskParamExt'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets riskParamExt
|
||||
*
|
||||
* @param string $riskParamExt riskParamExt
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRiskParamExt($riskParamExt)
|
||||
{
|
||||
$this->container['riskParamExt'] = $riskParamExt;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderValidate
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getOrderValidate()
|
||||
{
|
||||
return $this->container['orderValidate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderValidate
|
||||
*
|
||||
* @param int $orderValidate orderValidate
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderValidate($orderValidate)
|
||||
{
|
||||
$this->container['orderValidate'] = $orderValidate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets authType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAuthType()
|
||||
{
|
||||
return $this->container['authType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets authType
|
||||
*
|
||||
* @param string $authType authType
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAuthType($authType)
|
||||
{
|
||||
$this->container['authType'] = $authType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets empower
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getEmpower()
|
||||
{
|
||||
return $this->container['empower'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets empower
|
||||
*
|
||||
* @param bool $empower empower
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setEmpower($empower)
|
||||
{
|
||||
$this->container['empower'] = $empower;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets cardType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCardType()
|
||||
{
|
||||
return $this->container['cardType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cardType
|
||||
*
|
||||
* @param string $cardType cardType
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCardType($cardType)
|
||||
{
|
||||
$this->container['cardType'] = $cardType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets authScene
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAuthScene()
|
||||
{
|
||||
return $this->container['authScene'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets authScene
|
||||
*
|
||||
* @param string $authScene authScene
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAuthScene($authScene)
|
||||
{
|
||||
$this->container['authScene'] = $authScene;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets pageNotifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPageNotifyUrl()
|
||||
{
|
||||
return $this->container['pageNotifyUrl'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets pageNotifyUrl
|
||||
*
|
||||
* @param string $pageNotifyUrl pageNotifyUrl
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPageNotifyUrl($pageNotifyUrl)
|
||||
{
|
||||
$this->container['pageNotifyUrl'] = $pageNotifyUrl;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets appKey
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAppKey()
|
||||
{
|
||||
return $this->container['appKey'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets appKey
|
||||
*
|
||||
* @param string $appKey appKey
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAppKey($appKey)
|
||||
{
|
||||
$this->container['appKey'] = $appKey;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets idCardType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getIdCardType()
|
||||
{
|
||||
return $this->container['idCardType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idCardType
|
||||
*
|
||||
* @param string $idCardType idCardType
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setIdCardType($idCardType)
|
||||
{
|
||||
$this->container['idCardType'] = $idCardType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets sendSms
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getSendSms()
|
||||
{
|
||||
return $this->container['sendSms'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets sendSms
|
||||
*
|
||||
* @param bool $sendSms sendSms
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSendSms($sendSms)
|
||||
{
|
||||
$this->container['sendSms'] = $sendSms;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,632 @@
|
||||
<?php
|
||||
/**
|
||||
* BindcardPayerrequestOpenPayerAuthBindCardResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
*
|
||||
* <p>前置收银台</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* BindcardPayerrequestOpenPayerAuthBindCardResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class BindcardPayerrequestOpenPayerAuthBindCardResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'BindcardPayerrequestOpenPayerAuthBindCardResponseDTOResult';
|
||||
|
||||
/**
|
||||
* 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',
|
||||
'submitMethod' => 'string',
|
||||
'submitUrl' => 'string',
|
||||
'encoding' => 'string',
|
||||
'smsSender' => 'string',
|
||||
'smsType' => '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,
|
||||
'submitMethod' => null,
|
||||
'submitUrl' => null,
|
||||
'encoding' => null,
|
||||
'smsSender' => null,
|
||||
'smsType' => 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',
|
||||
'submitMethod' => 'submitMethod',
|
||||
'submitUrl' => 'submitUrl',
|
||||
'encoding' => 'encoding',
|
||||
'smsSender' => 'smsSender',
|
||||
'smsType' => 'smsType'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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',
|
||||
'submitMethod' => 'setSubmitMethod',
|
||||
'submitUrl' => 'setSubmitUrl',
|
||||
'encoding' => 'setEncoding',
|
||||
'smsSender' => 'setSmsSender',
|
||||
'smsType' => 'setSmsType'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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',
|
||||
'submitMethod' => 'getSubmitMethod',
|
||||
'submitUrl' => 'getSubmitUrl',
|
||||
'encoding' => 'getEncoding',
|
||||
'smsSender' => 'getSmsSender',
|
||||
'smsType' => 'getSmsType'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['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['smsSender'] = isset($data['smsSender']) ? $data['smsSender'] : null;
|
||||
$this->container['smsType'] = isset($data['smsType']) ? $data['smsType'] : 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 未命名
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setBindId($bindId)
|
||||
{
|
||||
$this->container['bindId'] = $bindId;
|
||||
|
||||
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 未命名
|
||||
*
|
||||
* @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 smsSender
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSmsSender()
|
||||
{
|
||||
return $this->container['smsSender'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets smsSender
|
||||
*
|
||||
* @param string $smsSender 未命名
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSmsSender($smsSender)
|
||||
{
|
||||
$this->container['smsSender'] = $smsSender;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets smsType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSmsType()
|
||||
{
|
||||
return $this->container['smsType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets smsType
|
||||
*
|
||||
* @param string $smsType 未命名
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSmsType($smsType)
|
||||
{
|
||||
$this->container['smsType'] = $smsType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class BindcardPayerrequestRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var
|
||||
*/
|
||||
private $body;
|
||||
|
||||
/**
|
||||
* Gets body
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public function getBody()
|
||||
{
|
||||
return $this->body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets body
|
||||
*
|
||||
* @param $body
|
||||
* @return BindcardPayerrequestRequest
|
||||
*/
|
||||
public function setBody($body)
|
||||
{
|
||||
$this->body = $body;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'bindcardPayerrequest';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
<?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 BindcardPayerrequestRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var BindcardPayerrequestRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardPayerrequestRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardPayerrequestRequestMarshaller
|
||||
*/
|
||||
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/payerrequest';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/json';
|
||||
|
||||
|
||||
/**
|
||||
* @param BindcardPayerrequestRequest $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
$content = (string)$request->getBody();
|
||||
$internalRequest->setContent($content);
|
||||
$internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content));
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
BindcardPayerrequestRequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class BindcardPayerrequestResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var BindcardPayerrequestOpenPayerAuthBindCardResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\BindcardPayerrequestOpenPayerAuthBindCardResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param BindcardPayerrequestOpenPayerAuthBindCardResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardPayerrequestOpenPayerAuthBindCardResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class BindcardPayerrequestResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardPayerrequestResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardPayerrequestResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardPayerrequestResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardPayerrequestResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new BindcardPayerrequestResponse();
|
||||
}
|
||||
}
|
||||
|
||||
BindcardPayerrequestResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,542 @@
|
||||
<?php
|
||||
/**
|
||||
* BindcardQueryorderinfoOpenQueryOrderInfoResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
*
|
||||
* <p>前置收银台</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* BindcardQueryorderinfoOpenQueryOrderInfoResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class BindcardQueryorderinfoOpenQueryOrderInfoResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'BindcardQueryorderinfoOpenQueryOrderInfoResponseDTOResult';
|
||||
|
||||
/**
|
||||
* 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',
|
||||
'userNo' => 'string',
|
||||
'userType' => '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,
|
||||
'userNo' => null,
|
||||
'userType' => 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',
|
||||
'userNo' => 'userNo',
|
||||
'userType' => 'userType',
|
||||
'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',
|
||||
'userNo' => 'setUserNo',
|
||||
'userType' => 'setUserType',
|
||||
'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',
|
||||
'userNo' => 'getUserNo',
|
||||
'userType' => 'getUserType',
|
||||
'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['userNo'] = isset($data['userNo']) ? $data['userNo'] : null;
|
||||
$this->container['userType'] = isset($data['userType']) ? $data['userType'] : 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 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 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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class BindcardQueryorderinfoRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantFlowId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $nopOrderId;
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo
|
||||
* @return BindcardQueryorderinfoRequest
|
||||
*/
|
||||
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 BindcardQueryorderinfoRequest
|
||||
*/
|
||||
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 BindcardQueryorderinfoRequest
|
||||
*/
|
||||
public function setNopOrderId($nopOrderId)
|
||||
{
|
||||
$this->nopOrderId = $nopOrderId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'bindcardQueryorderinfo';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
<?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 BindcardQueryorderinfoRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var BindcardQueryorderinfoRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardQueryorderinfoRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardQueryorderinfoRequestMarshaller
|
||||
*/
|
||||
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/bindcard/queryorderinfo';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param BindcardQueryorderinfoRequest $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'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
BindcardQueryorderinfoRequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class BindcardQueryorderinfoResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var BindcardQueryorderinfoOpenQueryOrderInfoResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\BindcardQueryorderinfoOpenQueryOrderInfoResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param BindcardQueryorderinfoOpenQueryOrderInfoResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardQueryorderinfoOpenQueryOrderInfoResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class BindcardQueryorderinfoResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardQueryorderinfoResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardQueryorderinfoResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardQueryorderinfoResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardQueryorderinfoResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new BindcardQueryorderinfoResponse();
|
||||
}
|
||||
}
|
||||
|
||||
BindcardQueryorderinfoResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,512 @@
|
||||
<?php
|
||||
/**
|
||||
* BindcardRequestV2OpenAuthBindCardResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
*
|
||||
* <p>前置收银台</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* BindcardRequestV2OpenAuthBindCardResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class BindcardRequestV2OpenAuthBindCardResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'BindcardRequestV2OpenAuthBindCardResponseDTOResult';
|
||||
|
||||
/**
|
||||
* 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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
417
lib/Service/Frontcashier/Model/BindcardRequestV2Request.php
Normal file
417
lib/Service/Frontcashier/Model/BindcardRequestV2Request.php
Normal file
@@ -0,0 +1,417 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class BindcardRequestV2Request extends \Yeepay\Yop\Sdk\Model\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 $idCardType;
|
||||
/**
|
||||
* @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 BindcardRequestV2Request
|
||||
*/
|
||||
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 BindcardRequestV2Request
|
||||
*/
|
||||
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 BindcardRequestV2Request
|
||||
*/
|
||||
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 BindcardRequestV2Request
|
||||
*/
|
||||
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 BindcardRequestV2Request
|
||||
*/
|
||||
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 BindcardRequestV2Request
|
||||
*/
|
||||
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 BindcardRequestV2Request
|
||||
*/
|
||||
public function setUserName($userName)
|
||||
{
|
||||
$this->userName = $userName;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets idCardType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getIdCardType()
|
||||
{
|
||||
return $this->idCardType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idCardType
|
||||
*
|
||||
* @param string $idCardType
|
||||
* @return BindcardRequestV2Request
|
||||
*/
|
||||
public function setIdCardType($idCardType)
|
||||
{
|
||||
$this->idCardType = $idCardType;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets idCardNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getIdCardNo()
|
||||
{
|
||||
return $this->idCardNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idCardNo
|
||||
*
|
||||
* @param string $idCardNo
|
||||
* @return BindcardRequestV2Request
|
||||
*/
|
||||
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 BindcardRequestV2Request
|
||||
*/
|
||||
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 BindcardRequestV2Request
|
||||
*/
|
||||
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 BindcardRequestV2Request
|
||||
*/
|
||||
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 BindcardRequestV2Request
|
||||
*/
|
||||
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 BindcardRequestV2Request
|
||||
*/
|
||||
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 BindcardRequestV2Request
|
||||
*/
|
||||
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 BindcardRequestV2Request
|
||||
*/
|
||||
public function setIsSMS($isSMS)
|
||||
{
|
||||
$this->isSMS = $isSMS;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'bindcardRequestV2';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -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 BindcardRequestV2RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var BindcardRequestV2RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardRequestV2RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardRequestV2RequestMarshaller
|
||||
*/
|
||||
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 BindcardRequestV2Request $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->getIdCardType() != null){
|
||||
$internalRequest->addParameter('idCardType', ObjectSerializer::sanitizeForSerialization($request->getIdCardType(), '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;
|
||||
}
|
||||
}
|
||||
BindcardRequestV2RequestMarshaller::__init();
|
||||
34
lib/Service/Frontcashier/Model/BindcardRequestV2Response.php
Normal file
34
lib/Service/Frontcashier/Model/BindcardRequestV2Response.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class BindcardRequestV2Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var BindcardRequestV2OpenAuthBindCardResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\BindcardRequestV2OpenAuthBindCardResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param BindcardRequestV2OpenAuthBindCardResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardRequestV2OpenAuthBindCardResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class BindcardRequestV2ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardRequestV2ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardRequestV2ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardRequestV2ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardRequestV2Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new BindcardRequestV2Response();
|
||||
}
|
||||
}
|
||||
|
||||
BindcardRequestV2ResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,452 @@
|
||||
<?php
|
||||
/**
|
||||
* BindcardResendsmsV2OpenAuthBindCardSmsResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
*
|
||||
* <p>前置收银台</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* BindcardResendsmsV2OpenAuthBindCardSmsResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class BindcardResendsmsV2OpenAuthBindCardSmsResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'BindcardResendsmsV2OpenAuthBindCardSmsResponseDTOResult';
|
||||
|
||||
/**
|
||||
* 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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class BindcardResendsmsV2Request extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantFlowId;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return BindcardResendsmsV2Request
|
||||
*/
|
||||
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 BindcardResendsmsV2Request
|
||||
*/
|
||||
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 BindcardResendsmsV2Request
|
||||
*/
|
||||
public function setMerchantFlowId($merchantFlowId)
|
||||
{
|
||||
$this->merchantFlowId = $merchantFlowId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'bindcardResendsmsV2';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
<?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 BindcardResendsmsV2RequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var BindcardResendsmsV2RequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardResendsmsV2RequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardResendsmsV2RequestMarshaller
|
||||
*/
|
||||
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/resendsms';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param BindcardResendsmsV2Request $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'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
BindcardResendsmsV2RequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class BindcardResendsmsV2Response extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var BindcardResendsmsV2OpenAuthBindCardSmsResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\BindcardResendsmsV2OpenAuthBindCardSmsResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param BindcardResendsmsV2OpenAuthBindCardSmsResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardResendsmsV2OpenAuthBindCardSmsResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class BindcardResendsmsV2ResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardResendsmsV2ResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardResendsmsV2ResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardResendsmsV2ResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardResendsmsV2Response
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new BindcardResendsmsV2Response();
|
||||
}
|
||||
}
|
||||
|
||||
BindcardResendsmsV2ResponseUnMarshaller::__init();
|
||||
117
lib/Service/Frontcashier/Model/BindcardUnbindcardRequest.php
Normal file
117
lib/Service/Frontcashier/Model/BindcardUnbindcardRequest.php
Normal file
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class BindcardUnbindcardRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $bindId;
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo
|
||||
* @return BindcardUnbindcardRequest
|
||||
*/
|
||||
public function setMerchantNo($merchantNo)
|
||||
{
|
||||
$this->merchantNo = $merchantNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets userNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUserNo()
|
||||
{
|
||||
return $this->userNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userNo
|
||||
*
|
||||
* @param string $userNo
|
||||
* @return BindcardUnbindcardRequest
|
||||
*/
|
||||
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 BindcardUnbindcardRequest
|
||||
*/
|
||||
public function setUserType($userType)
|
||||
{
|
||||
$this->userType = $userType;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets bindId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBindId()
|
||||
{
|
||||
return $this->bindId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bindId
|
||||
*
|
||||
* @param string $bindId
|
||||
* @return BindcardUnbindcardRequest
|
||||
*/
|
||||
public function setBindId($bindId)
|
||||
{
|
||||
$this->bindId = $bindId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'bindcardUnbindcard';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -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 BindcardUnbindcardRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var BindcardUnbindcardRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardUnbindcardRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardUnbindcardRequestMarshaller
|
||||
*/
|
||||
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/unbindcard';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param BindcardUnbindcardRequest $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->getUserNo() != null){
|
||||
$internalRequest->addParameter('userNo', ObjectSerializer::sanitizeForSerialization($request->getUserNo(), 'string'));
|
||||
}
|
||||
if($request->getUserType() != null){
|
||||
$internalRequest->addParameter('userType', ObjectSerializer::sanitizeForSerialization($request->getUserType(), 'string'));
|
||||
}
|
||||
if($request->getBindId() != null){
|
||||
$internalRequest->addParameter('bindId', ObjectSerializer::sanitizeForSerialization($request->getBindId(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
BindcardUnbindcardRequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class BindcardUnbindcardResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var BindcardUnbindcardUnBindCardResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\BindcardUnbindcardUnBindCardResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param BindcardUnbindcardUnBindCardResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardUnbindcardUnBindCardResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class BindcardUnbindcardResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var BindcardUnbindcardResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new BindcardUnbindcardResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardUnbindcardResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BindcardUnbindcardResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new BindcardUnbindcardResponse();
|
||||
}
|
||||
}
|
||||
|
||||
BindcardUnbindcardResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,452 @@
|
||||
<?php
|
||||
/**
|
||||
* BindcardUnbindcardUnBindCardResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
*
|
||||
* <p>前置收银台</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* BindcardUnbindcardUnBindCardResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class BindcardUnbindcardUnBindCardResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'BindcardUnbindcardUnBindCardResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'merchantNo' => 'string',
|
||||
'userNo' => 'string',
|
||||
'userType' => 'string',
|
||||
'bindId' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'merchantNo' => null,
|
||||
'userNo' => null,
|
||||
'userType' => 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',
|
||||
'userNo' => 'userNo',
|
||||
'userType' => 'userType',
|
||||
'bindId' => 'bindId'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'merchantNo' => 'setMerchantNo',
|
||||
'userNo' => 'setUserNo',
|
||||
'userType' => 'setUserType',
|
||||
'bindId' => 'setBindId'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'merchantNo' => 'getMerchantNo',
|
||||
'userNo' => 'getUserNo',
|
||||
'userType' => 'getUserType',
|
||||
'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['userNo'] = isset($data['userNo']) ? $data['userNo'] : null;
|
||||
$this->container['userType'] = isset($data['userType']) ? $data['userType'] : 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 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 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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,512 @@
|
||||
<?php
|
||||
/**
|
||||
* FastbindcardRequestOpenNetsUnionAuthBindCardResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
*
|
||||
* <p>前置收银台</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* FastbindcardRequestOpenNetsUnionAuthBindCardResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class FastbindcardRequestOpenNetsUnionAuthBindCardResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'FastbindcardRequestOpenNetsUnionAuthBindCardResponseDTOResult';
|
||||
|
||||
/**
|
||||
* 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',
|
||||
'submitMethod' => 'string',
|
||||
'submitUrl' => 'string',
|
||||
'encoding' => '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,
|
||||
'submitMethod' => null,
|
||||
'submitUrl' => null,
|
||||
'encoding' => 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',
|
||||
'submitMethod' => 'submitMethod',
|
||||
'submitUrl' => 'submitUrl',
|
||||
'encoding' => 'encoding'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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',
|
||||
'submitMethod' => 'setSubmitMethod',
|
||||
'submitUrl' => 'setSubmitUrl',
|
||||
'encoding' => 'setEncoding'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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',
|
||||
'submitMethod' => 'getSubmitMethod',
|
||||
'submitUrl' => 'getSubmitUrl',
|
||||
'encoding' => 'getEncoding'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 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 鉴权请求地址
|
||||
*
|
||||
* @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 url编码方式
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setEncoding($encoding)
|
||||
{
|
||||
$this->container['encoding'] = $encoding;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
392
lib/Service/Frontcashier/Model/FastbindcardRequestRequest.php
Normal file
392
lib/Service/Frontcashier/Model/FastbindcardRequestRequest.php
Normal file
@@ -0,0 +1,392 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class FastbindcardRequestRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $parentMerchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantFlowId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userName;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $idCardNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $idCardType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $bankCode;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $cardType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $pageReturnUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $bindNotifyUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $phone;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $riskParamExt;
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $orderValidate;
|
||||
|
||||
/**
|
||||
* Gets parentMerchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParentMerchantNo()
|
||||
{
|
||||
return $this->parentMerchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets parentMerchantNo
|
||||
*
|
||||
* @param string $parentMerchantNo
|
||||
* @return FastbindcardRequestRequest
|
||||
*/
|
||||
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 FastbindcardRequestRequest
|
||||
*/
|
||||
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 FastbindcardRequestRequest
|
||||
*/
|
||||
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 FastbindcardRequestRequest
|
||||
*/
|
||||
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 FastbindcardRequestRequest
|
||||
*/
|
||||
public function setUserType($userType)
|
||||
{
|
||||
$this->userType = $userType;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets userName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUserName()
|
||||
{
|
||||
return $this->userName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets userName
|
||||
*
|
||||
* @param string $userName
|
||||
* @return FastbindcardRequestRequest
|
||||
*/
|
||||
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 FastbindcardRequestRequest
|
||||
*/
|
||||
public function setIdCardNo($idCardNo)
|
||||
{
|
||||
$this->idCardNo = $idCardNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets idCardType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getIdCardType()
|
||||
{
|
||||
return $this->idCardType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets idCardType
|
||||
*
|
||||
* @param string $idCardType
|
||||
* @return FastbindcardRequestRequest
|
||||
*/
|
||||
public function setIdCardType($idCardType)
|
||||
{
|
||||
$this->idCardType = $idCardType;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets bankCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBankCode()
|
||||
{
|
||||
return $this->bankCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bankCode
|
||||
*
|
||||
* @param string $bankCode
|
||||
* @return FastbindcardRequestRequest
|
||||
*/
|
||||
public function setBankCode($bankCode)
|
||||
{
|
||||
$this->bankCode = $bankCode;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets cardType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCardType()
|
||||
{
|
||||
return $this->cardType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cardType
|
||||
*
|
||||
* @param string $cardType
|
||||
* @return FastbindcardRequestRequest
|
||||
*/
|
||||
public function setCardType($cardType)
|
||||
{
|
||||
$this->cardType = $cardType;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets pageReturnUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPageReturnUrl()
|
||||
{
|
||||
return $this->pageReturnUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets pageReturnUrl
|
||||
*
|
||||
* @param string $pageReturnUrl
|
||||
* @return FastbindcardRequestRequest
|
||||
*/
|
||||
public function setPageReturnUrl($pageReturnUrl)
|
||||
{
|
||||
$this->pageReturnUrl = $pageReturnUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets bindNotifyUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getBindNotifyUrl()
|
||||
{
|
||||
return $this->bindNotifyUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bindNotifyUrl
|
||||
*
|
||||
* @param string $bindNotifyUrl
|
||||
* @return FastbindcardRequestRequest
|
||||
*/
|
||||
public function setBindNotifyUrl($bindNotifyUrl)
|
||||
{
|
||||
$this->bindNotifyUrl = $bindNotifyUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets phone
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPhone()
|
||||
{
|
||||
return $this->phone;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets phone
|
||||
*
|
||||
* @param string $phone
|
||||
* @return FastbindcardRequestRequest
|
||||
*/
|
||||
public function setPhone($phone)
|
||||
{
|
||||
$this->phone = $phone;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets riskParamExt
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRiskParamExt()
|
||||
{
|
||||
return $this->riskParamExt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets riskParamExt
|
||||
*
|
||||
* @param string $riskParamExt
|
||||
* @return FastbindcardRequestRequest
|
||||
*/
|
||||
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 FastbindcardRequestRequest
|
||||
*/
|
||||
public function setOrderValidate($orderValidate)
|
||||
{
|
||||
$this->orderValidate = $orderValidate;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'fastbindcardRequest';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,122 @@
|
||||
<?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 FastbindcardRequestRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var FastbindcardRequestRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new FastbindcardRequestRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return FastbindcardRequestRequestMarshaller
|
||||
*/
|
||||
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/fastbindcard/request';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param FastbindcardRequestRequest $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->getUserName() != null){
|
||||
$internalRequest->addParameter('userName', ObjectSerializer::sanitizeForSerialization($request->getUserName(), 'string'));
|
||||
}
|
||||
if($request->getIdCardNo() != null){
|
||||
$internalRequest->addParameter('idCardNo', ObjectSerializer::sanitizeForSerialization($request->getIdCardNo(), 'string'));
|
||||
}
|
||||
if($request->getIdCardType() != null){
|
||||
$internalRequest->addParameter('idCardType', ObjectSerializer::sanitizeForSerialization($request->getIdCardType(), 'string'));
|
||||
}
|
||||
if($request->getBankCode() != null){
|
||||
$internalRequest->addParameter('bankCode', ObjectSerializer::sanitizeForSerialization($request->getBankCode(), 'string'));
|
||||
}
|
||||
if($request->getCardType() != null){
|
||||
$internalRequest->addParameter('cardType', ObjectSerializer::sanitizeForSerialization($request->getCardType(), 'string'));
|
||||
}
|
||||
if($request->getPageReturnUrl() != null){
|
||||
$internalRequest->addParameter('pageReturnUrl', ObjectSerializer::sanitizeForSerialization($request->getPageReturnUrl(), 'string', 'url'));
|
||||
}
|
||||
if($request->getBindNotifyUrl() != null){
|
||||
$internalRequest->addParameter('bindNotifyUrl', ObjectSerializer::sanitizeForSerialization($request->getBindNotifyUrl(), 'string', 'url'));
|
||||
}
|
||||
if($request->getPhone() != null){
|
||||
$internalRequest->addParameter('phone', ObjectSerializer::sanitizeForSerialization($request->getPhone(), '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'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
FastbindcardRequestRequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class FastbindcardRequestResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var FastbindcardRequestOpenNetsUnionAuthBindCardResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\FastbindcardRequestOpenNetsUnionAuthBindCardResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param FastbindcardRequestOpenNetsUnionAuthBindCardResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return FastbindcardRequestOpenNetsUnionAuthBindCardResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class FastbindcardRequestResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var FastbindcardRequestResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new FastbindcardRequestResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return FastbindcardRequestResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return FastbindcardRequestResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new FastbindcardRequestResponse();
|
||||
}
|
||||
}
|
||||
|
||||
FastbindcardRequestResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,362 @@
|
||||
<?php
|
||||
/**
|
||||
* UpopActivescanPayOpenActiveScanPayResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
*
|
||||
* <p>前置收银台</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* UpopActivescanPayOpenActiveScanPayResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class UpopActivescanPayOpenActiveScanPayResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'UpopActivescanPayOpenActiveScanPayResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'payOrderNo' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'payOrderNo' => 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',
|
||||
'payOrderNo' => 'payOrderNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'payOrderNo' => 'setPayOrderNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'payOrderNo' => 'getPayOrderNo'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['payOrderNo'] = isset($data['payOrderNo']) ? $data['payOrderNo'] : 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 payOrderNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayOrderNo()
|
||||
{
|
||||
return $this->container['payOrderNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payOrderNo
|
||||
*
|
||||
* @param string $payOrderNo 付款订单号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayOrderNo($payOrderNo)
|
||||
{
|
||||
$this->container['payOrderNo'] = $payOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* 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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
542
lib/Service/Frontcashier/Model/UpopActivescanPayRequest.php
Normal file
542
lib/Service/Frontcashier/Model/UpopActivescanPayRequest.php
Normal file
@@ -0,0 +1,542 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class UpopActivescanPayRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantFlowId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $paySerialNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $couponSerialNo;
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
private $tradeAmount;
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $bindId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $callBackUrl;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $payComments;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $deviceID;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $deviceType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $accountIDHash;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $sourceIP;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $usrRgstrDt;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $accountEmailLife;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $deviceLocation;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $fullDeviceNumber;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $captureMethod;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $deviceSimNumber;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $deviceName;
|
||||
|
||||
/**
|
||||
* Gets merchantNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantNo()
|
||||
{
|
||||
return $this->merchantNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantNo
|
||||
*
|
||||
* @param string $merchantNo
|
||||
* @return UpopActivescanPayRequest
|
||||
*/
|
||||
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 UpopActivescanPayRequest
|
||||
*/
|
||||
public function setMerchantFlowId($merchantFlowId)
|
||||
{
|
||||
$this->merchantFlowId = $merchantFlowId;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets paySerialNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPaySerialNo()
|
||||
{
|
||||
return $this->paySerialNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets paySerialNo
|
||||
*
|
||||
* @param string $paySerialNo
|
||||
* @return UpopActivescanPayRequest
|
||||
*/
|
||||
public function setPaySerialNo($paySerialNo)
|
||||
{
|
||||
$this->paySerialNo = $paySerialNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets couponSerialNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCouponSerialNo()
|
||||
{
|
||||
return $this->couponSerialNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets couponSerialNo
|
||||
*
|
||||
* @param string $couponSerialNo
|
||||
* @return UpopActivescanPayRequest
|
||||
*/
|
||||
public function setCouponSerialNo($couponSerialNo)
|
||||
{
|
||||
$this->couponSerialNo = $couponSerialNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets tradeAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getTradeAmount()
|
||||
{
|
||||
return $this->tradeAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets tradeAmount
|
||||
*
|
||||
* @param float $tradeAmount
|
||||
* @return UpopActivescanPayRequest
|
||||
*/
|
||||
public function setTradeAmount($tradeAmount)
|
||||
{
|
||||
$this->tradeAmount = $tradeAmount;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets bindId
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getBindId()
|
||||
{
|
||||
return $this->bindId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bindId
|
||||
*
|
||||
* @param int $bindId
|
||||
* @return UpopActivescanPayRequest
|
||||
*/
|
||||
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 UpopActivescanPayRequest
|
||||
*/
|
||||
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 UpopActivescanPayRequest
|
||||
*/
|
||||
public function setUserType($userType)
|
||||
{
|
||||
$this->userType = $userType;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets callBackUrl
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCallBackUrl()
|
||||
{
|
||||
return $this->callBackUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets callBackUrl
|
||||
*
|
||||
* @param string $callBackUrl
|
||||
* @return UpopActivescanPayRequest
|
||||
*/
|
||||
public function setCallBackUrl($callBackUrl)
|
||||
{
|
||||
$this->callBackUrl = $callBackUrl;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets payComments
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayComments()
|
||||
{
|
||||
return $this->payComments;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payComments
|
||||
*
|
||||
* @param string $payComments
|
||||
* @return UpopActivescanPayRequest
|
||||
*/
|
||||
public function setPayComments($payComments)
|
||||
{
|
||||
$this->payComments = $payComments;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets deviceID
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDeviceID()
|
||||
{
|
||||
return $this->deviceID;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets deviceID
|
||||
*
|
||||
* @param string $deviceID
|
||||
* @return UpopActivescanPayRequest
|
||||
*/
|
||||
public function setDeviceID($deviceID)
|
||||
{
|
||||
$this->deviceID = $deviceID;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets deviceType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDeviceType()
|
||||
{
|
||||
return $this->deviceType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets deviceType
|
||||
*
|
||||
* @param string $deviceType
|
||||
* @return UpopActivescanPayRequest
|
||||
*/
|
||||
public function setDeviceType($deviceType)
|
||||
{
|
||||
$this->deviceType = $deviceType;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets accountIDHash
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountIDHash()
|
||||
{
|
||||
return $this->accountIDHash;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets accountIDHash
|
||||
*
|
||||
* @param string $accountIDHash
|
||||
* @return UpopActivescanPayRequest
|
||||
*/
|
||||
public function setAccountIDHash($accountIDHash)
|
||||
{
|
||||
$this->accountIDHash = $accountIDHash;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets sourceIP
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSourceIP()
|
||||
{
|
||||
return $this->sourceIP;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets sourceIP
|
||||
*
|
||||
* @param string $sourceIP
|
||||
* @return UpopActivescanPayRequest
|
||||
*/
|
||||
public function setSourceIP($sourceIP)
|
||||
{
|
||||
$this->sourceIP = $sourceIP;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets usrRgstrDt
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUsrRgstrDt()
|
||||
{
|
||||
return $this->usrRgstrDt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets usrRgstrDt
|
||||
*
|
||||
* @param string $usrRgstrDt
|
||||
* @return UpopActivescanPayRequest
|
||||
*/
|
||||
public function setUsrRgstrDt($usrRgstrDt)
|
||||
{
|
||||
$this->usrRgstrDt = $usrRgstrDt;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets accountEmailLife
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAccountEmailLife()
|
||||
{
|
||||
return $this->accountEmailLife;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets accountEmailLife
|
||||
*
|
||||
* @param string $accountEmailLife
|
||||
* @return UpopActivescanPayRequest
|
||||
*/
|
||||
public function setAccountEmailLife($accountEmailLife)
|
||||
{
|
||||
$this->accountEmailLife = $accountEmailLife;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets deviceLocation
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDeviceLocation()
|
||||
{
|
||||
return $this->deviceLocation;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets deviceLocation
|
||||
*
|
||||
* @param string $deviceLocation
|
||||
* @return UpopActivescanPayRequest
|
||||
*/
|
||||
public function setDeviceLocation($deviceLocation)
|
||||
{
|
||||
$this->deviceLocation = $deviceLocation;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets fullDeviceNumber
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFullDeviceNumber()
|
||||
{
|
||||
return $this->fullDeviceNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets fullDeviceNumber
|
||||
*
|
||||
* @param string $fullDeviceNumber
|
||||
* @return UpopActivescanPayRequest
|
||||
*/
|
||||
public function setFullDeviceNumber($fullDeviceNumber)
|
||||
{
|
||||
$this->fullDeviceNumber = $fullDeviceNumber;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets captureMethod
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCaptureMethod()
|
||||
{
|
||||
return $this->captureMethod;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets captureMethod
|
||||
*
|
||||
* @param string $captureMethod
|
||||
* @return UpopActivescanPayRequest
|
||||
*/
|
||||
public function setCaptureMethod($captureMethod)
|
||||
{
|
||||
$this->captureMethod = $captureMethod;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets deviceSimNumber
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDeviceSimNumber()
|
||||
{
|
||||
return $this->deviceSimNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets deviceSimNumber
|
||||
*
|
||||
* @param string $deviceSimNumber
|
||||
* @return UpopActivescanPayRequest
|
||||
*/
|
||||
public function setDeviceSimNumber($deviceSimNumber)
|
||||
{
|
||||
$this->deviceSimNumber = $deviceSimNumber;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets deviceName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDeviceName()
|
||||
{
|
||||
return $this->deviceName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets deviceName
|
||||
*
|
||||
* @param string $deviceName
|
||||
* @return UpopActivescanPayRequest
|
||||
*/
|
||||
public function setDeviceName($deviceName)
|
||||
{
|
||||
$this->deviceName = $deviceName;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'upopActivescanPay';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,140 @@
|
||||
<?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 UpopActivescanPayRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var UpopActivescanPayRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new UpopActivescanPayRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UpopActivescanPayRequestMarshaller
|
||||
*/
|
||||
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/upop/activescan/pay';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param UpopActivescanPayRequest $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->getPaySerialNo() != null){
|
||||
$internalRequest->addParameter('paySerialNo', ObjectSerializer::sanitizeForSerialization($request->getPaySerialNo(), 'string'));
|
||||
}
|
||||
if($request->getCouponSerialNo() != null){
|
||||
$internalRequest->addParameter('couponSerialNo', ObjectSerializer::sanitizeForSerialization($request->getCouponSerialNo(), 'string'));
|
||||
}
|
||||
if($request->getTradeAmount() != null){
|
||||
$internalRequest->addParameter('tradeAmount', ObjectSerializer::sanitizeForSerialization($request->getTradeAmount(), 'float'));
|
||||
}
|
||||
if($request->getBindId() != null){
|
||||
$internalRequest->addParameter('bindId', ObjectSerializer::sanitizeForSerialization($request->getBindId(), 'int', 'int64'));
|
||||
}
|
||||
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->getCallBackUrl() != null){
|
||||
$internalRequest->addParameter('callBackUrl', ObjectSerializer::sanitizeForSerialization($request->getCallBackUrl(), 'string'));
|
||||
}
|
||||
if($request->getPayComments() != null){
|
||||
$internalRequest->addParameter('payComments', ObjectSerializer::sanitizeForSerialization($request->getPayComments(), 'string'));
|
||||
}
|
||||
if($request->getDeviceID() != null){
|
||||
$internalRequest->addParameter('deviceID', ObjectSerializer::sanitizeForSerialization($request->getDeviceID(), 'string'));
|
||||
}
|
||||
if($request->getDeviceType() != null){
|
||||
$internalRequest->addParameter('deviceType', ObjectSerializer::sanitizeForSerialization($request->getDeviceType(), 'string'));
|
||||
}
|
||||
if($request->getAccountIDHash() != null){
|
||||
$internalRequest->addParameter('accountIDHash', ObjectSerializer::sanitizeForSerialization($request->getAccountIDHash(), 'string'));
|
||||
}
|
||||
if($request->getSourceIP() != null){
|
||||
$internalRequest->addParameter('sourceIP', ObjectSerializer::sanitizeForSerialization($request->getSourceIP(), 'string'));
|
||||
}
|
||||
if($request->getUsrRgstrDt() != null){
|
||||
$internalRequest->addParameter('usrRgstrDt', ObjectSerializer::sanitizeForSerialization($request->getUsrRgstrDt(), 'string', 'date'));
|
||||
}
|
||||
if($request->getAccountEmailLife() != null){
|
||||
$internalRequest->addParameter('accountEmailLife', ObjectSerializer::sanitizeForSerialization($request->getAccountEmailLife(), 'string'));
|
||||
}
|
||||
if($request->getDeviceLocation() != null){
|
||||
$internalRequest->addParameter('deviceLocation', ObjectSerializer::sanitizeForSerialization($request->getDeviceLocation(), 'string'));
|
||||
}
|
||||
if($request->getFullDeviceNumber() != null){
|
||||
$internalRequest->addParameter('fullDeviceNumber', ObjectSerializer::sanitizeForSerialization($request->getFullDeviceNumber(), 'string'));
|
||||
}
|
||||
if($request->getCaptureMethod() != null){
|
||||
$internalRequest->addParameter('captureMethod', ObjectSerializer::sanitizeForSerialization($request->getCaptureMethod(), 'string'));
|
||||
}
|
||||
if($request->getDeviceSimNumber() != null){
|
||||
$internalRequest->addParameter('deviceSimNumber', ObjectSerializer::sanitizeForSerialization($request->getDeviceSimNumber(), 'string'));
|
||||
}
|
||||
if($request->getDeviceName() != null){
|
||||
$internalRequest->addParameter('deviceName', ObjectSerializer::sanitizeForSerialization($request->getDeviceName(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
UpopActivescanPayRequestMarshaller::__init();
|
||||
34
lib/Service/Frontcashier/Model/UpopActivescanPayResponse.php
Normal file
34
lib/Service/Frontcashier/Model/UpopActivescanPayResponse.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class UpopActivescanPayResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var UpopActivescanPayOpenActiveScanPayResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\UpopActivescanPayOpenActiveScanPayResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param UpopActivescanPayOpenActiveScanPayResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UpopActivescanPayOpenActiveScanPayResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class UpopActivescanPayResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var UpopActivescanPayResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new UpopActivescanPayResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UpopActivescanPayResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UpopActivescanPayResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new UpopActivescanPayResponse();
|
||||
}
|
||||
}
|
||||
|
||||
UpopActivescanPayResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,362 @@
|
||||
<?php
|
||||
/**
|
||||
* UpopActivescanQuerycouponOpenQueryCouponInfoResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
*
|
||||
* <p>前置收银台</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* UpopActivescanQuerycouponOpenQueryCouponInfoResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class UpopActivescanQuerycouponOpenQueryCouponInfoResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'UpopActivescanQuerycouponOpenQueryCouponInfoResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'couponInfo' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'couponInfo' => 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',
|
||||
'couponInfo' => 'couponInfo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'couponInfo' => 'setCouponInfo'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'couponInfo' => 'getCouponInfo'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['couponInfo'] = isset($data['couponInfo']) ? $data['couponInfo'] : 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 couponInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCouponInfo()
|
||||
{
|
||||
return $this->container['couponInfo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets couponInfo
|
||||
*
|
||||
* @param string $couponInfo 营销信息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCouponInfo($couponInfo)
|
||||
{
|
||||
$this->container['couponInfo'] = $couponInfo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,267 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class UpopActivescanQuerycouponRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantFlowId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $paySerialNo;
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
private $tradeAmount;
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
private $bindId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $userType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $riskInfoDeviceID;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $riskInfoDeviceType;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $riskInfoAccountIDHash;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $riskInfoSourceIP;
|
||||
|
||||
/**
|
||||
* Gets merchantFlowId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantFlowId()
|
||||
{
|
||||
return $this->merchantFlowId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantFlowId
|
||||
*
|
||||
* @param string $merchantFlowId
|
||||
* @return UpopActivescanQuerycouponRequest
|
||||
*/
|
||||
public function setMerchantFlowId($merchantFlowId)
|
||||
{
|
||||
$this->merchantFlowId = $merchantFlowId;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets paySerialNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPaySerialNo()
|
||||
{
|
||||
return $this->paySerialNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets paySerialNo
|
||||
*
|
||||
* @param string $paySerialNo
|
||||
* @return UpopActivescanQuerycouponRequest
|
||||
*/
|
||||
public function setPaySerialNo($paySerialNo)
|
||||
{
|
||||
$this->paySerialNo = $paySerialNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets tradeAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getTradeAmount()
|
||||
{
|
||||
return $this->tradeAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets tradeAmount
|
||||
*
|
||||
* @param float $tradeAmount
|
||||
* @return UpopActivescanQuerycouponRequest
|
||||
*/
|
||||
public function setTradeAmount($tradeAmount)
|
||||
{
|
||||
$this->tradeAmount = $tradeAmount;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets bindId
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getBindId()
|
||||
{
|
||||
return $this->bindId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets bindId
|
||||
*
|
||||
* @param int $bindId
|
||||
* @return UpopActivescanQuerycouponRequest
|
||||
*/
|
||||
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 UpopActivescanQuerycouponRequest
|
||||
*/
|
||||
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 UpopActivescanQuerycouponRequest
|
||||
*/
|
||||
public function setUserType($userType)
|
||||
{
|
||||
$this->userType = $userType;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets riskInfoDeviceID
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRiskInfoDeviceID()
|
||||
{
|
||||
return $this->riskInfoDeviceID;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets riskInfoDeviceID
|
||||
*
|
||||
* @param string $riskInfoDeviceID
|
||||
* @return UpopActivescanQuerycouponRequest
|
||||
*/
|
||||
public function setRiskInfoDeviceID($riskInfoDeviceID)
|
||||
{
|
||||
$this->riskInfoDeviceID = $riskInfoDeviceID;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets riskInfoDeviceType
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRiskInfoDeviceType()
|
||||
{
|
||||
return $this->riskInfoDeviceType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets riskInfoDeviceType
|
||||
*
|
||||
* @param string $riskInfoDeviceType
|
||||
* @return UpopActivescanQuerycouponRequest
|
||||
*/
|
||||
public function setRiskInfoDeviceType($riskInfoDeviceType)
|
||||
{
|
||||
$this->riskInfoDeviceType = $riskInfoDeviceType;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets riskInfoAccountIDHash
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRiskInfoAccountIDHash()
|
||||
{
|
||||
return $this->riskInfoAccountIDHash;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets riskInfoAccountIDHash
|
||||
*
|
||||
* @param string $riskInfoAccountIDHash
|
||||
* @return UpopActivescanQuerycouponRequest
|
||||
*/
|
||||
public function setRiskInfoAccountIDHash($riskInfoAccountIDHash)
|
||||
{
|
||||
$this->riskInfoAccountIDHash = $riskInfoAccountIDHash;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets riskInfoSourceIP
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRiskInfoSourceIP()
|
||||
{
|
||||
return $this->riskInfoSourceIP;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets riskInfoSourceIP
|
||||
*
|
||||
* @param string $riskInfoSourceIP
|
||||
* @return UpopActivescanQuerycouponRequest
|
||||
*/
|
||||
public function setRiskInfoSourceIP($riskInfoSourceIP)
|
||||
{
|
||||
$this->riskInfoSourceIP = $riskInfoSourceIP;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'upopActivescanQuerycoupon';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
<?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 UpopActivescanQuerycouponRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var UpopActivescanQuerycouponRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new UpopActivescanQuerycouponRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UpopActivescanQuerycouponRequestMarshaller
|
||||
*/
|
||||
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/upop/activescan/querycoupon';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param UpopActivescanQuerycouponRequest $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->getMerchantFlowId() != null){
|
||||
$internalRequest->addParameter('merchantFlowId', ObjectSerializer::sanitizeForSerialization($request->getMerchantFlowId(), 'string'));
|
||||
}
|
||||
if($request->getPaySerialNo() != null){
|
||||
$internalRequest->addParameter('paySerialNo', ObjectSerializer::sanitizeForSerialization($request->getPaySerialNo(), 'string'));
|
||||
}
|
||||
if($request->getTradeAmount() != null){
|
||||
$internalRequest->addParameter('tradeAmount', ObjectSerializer::sanitizeForSerialization($request->getTradeAmount(), 'float'));
|
||||
}
|
||||
if($request->getBindId() != null){
|
||||
$internalRequest->addParameter('bindId', ObjectSerializer::sanitizeForSerialization($request->getBindId(), 'int', 'int64'));
|
||||
}
|
||||
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->getRiskInfoDeviceID() != null){
|
||||
$internalRequest->addParameter('riskInfoDeviceID', ObjectSerializer::sanitizeForSerialization($request->getRiskInfoDeviceID(), 'string'));
|
||||
}
|
||||
if($request->getRiskInfoDeviceType() != null){
|
||||
$internalRequest->addParameter('riskInfoDeviceType', ObjectSerializer::sanitizeForSerialization($request->getRiskInfoDeviceType(), 'string'));
|
||||
}
|
||||
if($request->getRiskInfoAccountIDHash() != null){
|
||||
$internalRequest->addParameter('riskInfoAccountIDHash', ObjectSerializer::sanitizeForSerialization($request->getRiskInfoAccountIDHash(), 'string'));
|
||||
}
|
||||
if($request->getRiskInfoSourceIP() != null){
|
||||
$internalRequest->addParameter('riskInfoSourceIP', ObjectSerializer::sanitizeForSerialization($request->getRiskInfoSourceIP(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
UpopActivescanQuerycouponRequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class UpopActivescanQuerycouponResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var UpopActivescanQuerycouponOpenQueryCouponInfoResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\UpopActivescanQuerycouponOpenQueryCouponInfoResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param UpopActivescanQuerycouponOpenQueryCouponInfoResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UpopActivescanQuerycouponOpenQueryCouponInfoResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class UpopActivescanQuerycouponResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var UpopActivescanQuerycouponResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new UpopActivescanQuerycouponResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UpopActivescanQuerycouponResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UpopActivescanQuerycouponResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new UpopActivescanQuerycouponResponse();
|
||||
}
|
||||
}
|
||||
|
||||
UpopActivescanQuerycouponResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,452 @@
|
||||
<?php
|
||||
/**
|
||||
* UpopActivescanQuerypayeeorderOpenQueryPayeeOrderInfoResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
*
|
||||
* <p>前置收银台</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* UpopActivescanQuerypayeeorderOpenQueryPayeeOrderInfoResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class UpopActivescanQuerypayeeorderOpenQueryPayeeOrderInfoResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'UpopActivescanQuerypayeeorderOpenQueryPayeeOrderInfoResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'paySerialNo' => 'string',
|
||||
'payeeMerchantName' => 'string',
|
||||
'payeeComments' => 'string',
|
||||
'tradeAmount' => 'float'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'paySerialNo' => null,
|
||||
'payeeMerchantName' => null,
|
||||
'payeeComments' => null,
|
||||
'tradeAmount' => 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',
|
||||
'paySerialNo' => 'paySerialNo',
|
||||
'payeeMerchantName' => 'payeeMerchantName',
|
||||
'payeeComments' => 'payeeComments',
|
||||
'tradeAmount' => 'tradeAmount'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'paySerialNo' => 'setPaySerialNo',
|
||||
'payeeMerchantName' => 'setPayeeMerchantName',
|
||||
'payeeComments' => 'setPayeeComments',
|
||||
'tradeAmount' => 'setTradeAmount'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'paySerialNo' => 'getPaySerialNo',
|
||||
'payeeMerchantName' => 'getPayeeMerchantName',
|
||||
'payeeComments' => 'getPayeeComments',
|
||||
'tradeAmount' => 'getTradeAmount'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['paySerialNo'] = isset($data['paySerialNo']) ? $data['paySerialNo'] : null;
|
||||
$this->container['payeeMerchantName'] = isset($data['payeeMerchantName']) ? $data['payeeMerchantName'] : null;
|
||||
$this->container['payeeComments'] = isset($data['payeeComments']) ? $data['payeeComments'] : null;
|
||||
$this->container['tradeAmount'] = isset($data['tradeAmount']) ? $data['tradeAmount'] : 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 paySerialNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPaySerialNo()
|
||||
{
|
||||
return $this->container['paySerialNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets paySerialNo
|
||||
*
|
||||
* @param string $paySerialNo 付款序列号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPaySerialNo($paySerialNo)
|
||||
{
|
||||
$this->container['paySerialNo'] = $paySerialNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets payeeMerchantName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayeeMerchantName()
|
||||
{
|
||||
return $this->container['payeeMerchantName'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payeeMerchantName
|
||||
*
|
||||
* @param string $payeeMerchantName 收款方商户名称
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayeeMerchantName($payeeMerchantName)
|
||||
{
|
||||
$this->container['payeeMerchantName'] = $payeeMerchantName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets payeeComments
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayeeComments()
|
||||
{
|
||||
return $this->container['payeeComments'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payeeComments
|
||||
*
|
||||
* @param string $payeeComments 收款方附言
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayeeComments($payeeComments)
|
||||
{
|
||||
$this->container['payeeComments'] = $payeeComments;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets tradeAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getTradeAmount()
|
||||
{
|
||||
return $this->container['tradeAmount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets tradeAmount
|
||||
*
|
||||
* @param float $tradeAmount 交易金额
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setTradeAmount($tradeAmount)
|
||||
{
|
||||
$this->container['tradeAmount'] = $tradeAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class UpopActivescanQuerypayeeorderRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantFlowId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $qrCode;
|
||||
|
||||
/**
|
||||
* Gets merchantFlowId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantFlowId()
|
||||
{
|
||||
return $this->merchantFlowId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantFlowId
|
||||
*
|
||||
* @param string $merchantFlowId
|
||||
* @return UpopActivescanQuerypayeeorderRequest
|
||||
*/
|
||||
public function setMerchantFlowId($merchantFlowId)
|
||||
{
|
||||
$this->merchantFlowId = $merchantFlowId;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets qrCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getQrCode()
|
||||
{
|
||||
return $this->qrCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets qrCode
|
||||
*
|
||||
* @param string $qrCode
|
||||
* @return UpopActivescanQuerypayeeorderRequest
|
||||
*/
|
||||
public function setQrCode($qrCode)
|
||||
{
|
||||
$this->qrCode = $qrCode;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'upopActivescanQuerypayeeorder';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -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 UpopActivescanQuerypayeeorderRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var UpopActivescanQuerypayeeorderRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new UpopActivescanQuerypayeeorderRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UpopActivescanQuerypayeeorderRequestMarshaller
|
||||
*/
|
||||
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/upop/activescan/querypayeeorder';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param UpopActivescanQuerypayeeorderRequest $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->getMerchantFlowId() != null){
|
||||
$internalRequest->addParameter('merchantFlowId', ObjectSerializer::sanitizeForSerialization($request->getMerchantFlowId(), 'string'));
|
||||
}
|
||||
if($request->getQrCode() != null){
|
||||
$internalRequest->addParameter('qrCode', ObjectSerializer::sanitizeForSerialization($request->getQrCode(), 'string'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
UpopActivescanQuerypayeeorderRequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class UpopActivescanQuerypayeeorderResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var UpopActivescanQuerypayeeorderOpenQueryPayeeOrderInfoResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\UpopActivescanQuerypayeeorderOpenQueryPayeeOrderInfoResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param UpopActivescanQuerypayeeorderOpenQueryPayeeOrderInfoResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UpopActivescanQuerypayeeorderOpenQueryPayeeOrderInfoResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class UpopActivescanQuerypayeeorderResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var UpopActivescanQuerypayeeorderResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new UpopActivescanQuerypayeeorderResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UpopActivescanQuerypayeeorderResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UpopActivescanQuerypayeeorderResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new UpopActivescanQuerypayeeorderResponse();
|
||||
}
|
||||
}
|
||||
|
||||
UpopActivescanQuerypayeeorderResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,333 @@
|
||||
<?php
|
||||
/**
|
||||
* UpopActivescanQuerypayresultOpenQueryActiveScanPayResultRequestDTOParam
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
*
|
||||
* <p>前置收银台</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* UpopActivescanQuerypayresultOpenQueryActiveScanPayResultRequestDTOParam Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description 方法签名第0个参数,请自行修改arg0等参数的名字
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class UpopActivescanQuerypayresultOpenQueryActiveScanPayResultRequestDTOParam implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'UpopActivescanQuerypayresultOpenQueryActiveScanPayResultRequestDTOParam';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'merchanNo' => 'string',
|
||||
'merchantFlowId' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'merchanNo' => null,
|
||||
'merchantFlowId' => 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 = [
|
||||
'merchanNo' => 'merchanNo',
|
||||
'merchantFlowId' => 'merchantFlowId'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'merchanNo' => 'setMerchanNo',
|
||||
'merchantFlowId' => 'setMerchantFlowId'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'merchanNo' => 'getMerchanNo',
|
||||
'merchantFlowId' => 'getMerchantFlowId'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['merchanNo'] = isset($data['merchanNo']) ? $data['merchanNo'] : null;
|
||||
$this->container['merchantFlowId'] = isset($data['merchantFlowId']) ? $data['merchantFlowId'] : 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 merchanNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchanNo()
|
||||
{
|
||||
return $this->container['merchanNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchanNo
|
||||
*
|
||||
* @param string $merchanNo merchanNo
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchanNo($merchanNo)
|
||||
{
|
||||
$this->container['merchanNo'] = $merchanNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets merchantFlowId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantFlowId()
|
||||
{
|
||||
return $this->container['merchantFlowId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantFlowId
|
||||
*
|
||||
* @param string $merchantFlowId merchantFlowId
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setMerchantFlowId($merchantFlowId)
|
||||
{
|
||||
$this->container['merchantFlowId'] = $merchantFlowId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,722 @@
|
||||
<?php
|
||||
/**
|
||||
* UpopActivescanQuerypayresultOpenQueryActiveScanPayResultResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
*
|
||||
* <p>前置收银台</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* UpopActivescanQuerypayresultOpenQueryActiveScanPayResultResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class UpopActivescanQuerypayresultOpenQueryActiveScanPayResultResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'UpopActivescanQuerypayresultOpenQueryActiveScanPayResultResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'origCode' => 'string',
|
||||
'origMessage' => 'string',
|
||||
'payOrderNo' => 'string',
|
||||
'realTradeAmount' => 'float',
|
||||
'totalRefundAmount' => 'float',
|
||||
'payeeMerchantId' => 'string',
|
||||
'payeeMerchantName' => 'string',
|
||||
'payeeMCC' => 'string',
|
||||
'status' => 'string',
|
||||
'couponInfo' => 'string',
|
||||
'origTxnAmt' => 'float',
|
||||
'totalRefundOrigTxnAmt' => 'float',
|
||||
'refundTradeDetailList' => '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\UpopActivescanQuerypayresultRefundTradeDetailResponseDTOResult[]'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'origCode' => null,
|
||||
'origMessage' => null,
|
||||
'payOrderNo' => null,
|
||||
'realTradeAmount' => null,
|
||||
'totalRefundAmount' => null,
|
||||
'payeeMerchantId' => null,
|
||||
'payeeMerchantName' => null,
|
||||
'payeeMCC' => null,
|
||||
'status' => null,
|
||||
'couponInfo' => null,
|
||||
'origTxnAmt' => null,
|
||||
'totalRefundOrigTxnAmt' => null,
|
||||
'refundTradeDetailList' => 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',
|
||||
'origCode' => 'origCode',
|
||||
'origMessage' => 'origMessage',
|
||||
'payOrderNo' => 'payOrderNo',
|
||||
'realTradeAmount' => 'realTradeAmount',
|
||||
'totalRefundAmount' => 'totalRefundAmount',
|
||||
'payeeMerchantId' => 'payeeMerchantId',
|
||||
'payeeMerchantName' => 'payeeMerchantName',
|
||||
'payeeMCC' => 'payeeMCC',
|
||||
'status' => 'status',
|
||||
'couponInfo' => 'couponInfo',
|
||||
'origTxnAmt' => 'origTxnAmt',
|
||||
'totalRefundOrigTxnAmt' => 'totalRefundOrigTxnAmt',
|
||||
'refundTradeDetailList' => 'refundTradeDetailList'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'origCode' => 'setOrigCode',
|
||||
'origMessage' => 'setOrigMessage',
|
||||
'payOrderNo' => 'setPayOrderNo',
|
||||
'realTradeAmount' => 'setRealTradeAmount',
|
||||
'totalRefundAmount' => 'setTotalRefundAmount',
|
||||
'payeeMerchantId' => 'setPayeeMerchantId',
|
||||
'payeeMerchantName' => 'setPayeeMerchantName',
|
||||
'payeeMCC' => 'setPayeeMCC',
|
||||
'status' => 'setStatus',
|
||||
'couponInfo' => 'setCouponInfo',
|
||||
'origTxnAmt' => 'setOrigTxnAmt',
|
||||
'totalRefundOrigTxnAmt' => 'setTotalRefundOrigTxnAmt',
|
||||
'refundTradeDetailList' => 'setRefundTradeDetailList'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'origCode' => 'getOrigCode',
|
||||
'origMessage' => 'getOrigMessage',
|
||||
'payOrderNo' => 'getPayOrderNo',
|
||||
'realTradeAmount' => 'getRealTradeAmount',
|
||||
'totalRefundAmount' => 'getTotalRefundAmount',
|
||||
'payeeMerchantId' => 'getPayeeMerchantId',
|
||||
'payeeMerchantName' => 'getPayeeMerchantName',
|
||||
'payeeMCC' => 'getPayeeMCC',
|
||||
'status' => 'getStatus',
|
||||
'couponInfo' => 'getCouponInfo',
|
||||
'origTxnAmt' => 'getOrigTxnAmt',
|
||||
'totalRefundOrigTxnAmt' => 'getTotalRefundOrigTxnAmt',
|
||||
'refundTradeDetailList' => 'getRefundTradeDetailList'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['origCode'] = isset($data['origCode']) ? $data['origCode'] : null;
|
||||
$this->container['origMessage'] = isset($data['origMessage']) ? $data['origMessage'] : null;
|
||||
$this->container['payOrderNo'] = isset($data['payOrderNo']) ? $data['payOrderNo'] : null;
|
||||
$this->container['realTradeAmount'] = isset($data['realTradeAmount']) ? $data['realTradeAmount'] : null;
|
||||
$this->container['totalRefundAmount'] = isset($data['totalRefundAmount']) ? $data['totalRefundAmount'] : null;
|
||||
$this->container['payeeMerchantId'] = isset($data['payeeMerchantId']) ? $data['payeeMerchantId'] : null;
|
||||
$this->container['payeeMerchantName'] = isset($data['payeeMerchantName']) ? $data['payeeMerchantName'] : null;
|
||||
$this->container['payeeMCC'] = isset($data['payeeMCC']) ? $data['payeeMCC'] : null;
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
$this->container['couponInfo'] = isset($data['couponInfo']) ? $data['couponInfo'] : null;
|
||||
$this->container['origTxnAmt'] = isset($data['origTxnAmt']) ? $data['origTxnAmt'] : null;
|
||||
$this->container['totalRefundOrigTxnAmt'] = isset($data['totalRefundOrigTxnAmt']) ? $data['totalRefundOrigTxnAmt'] : null;
|
||||
$this->container['refundTradeDetailList'] = isset($data['refundTradeDetailList']) ? $data['refundTradeDetailList'] : 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 origCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrigCode()
|
||||
{
|
||||
return $this->container['origCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets origCode
|
||||
*
|
||||
* @param string $origCode 失败错误码
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrigCode($origCode)
|
||||
{
|
||||
$this->container['origCode'] = $origCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets origMessage
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrigMessage()
|
||||
{
|
||||
return $this->container['origMessage'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets origMessage
|
||||
*
|
||||
* @param string $origMessage 失败错误描述
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrigMessage($origMessage)
|
||||
{
|
||||
$this->container['origMessage'] = $origMessage;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets payOrderNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayOrderNo()
|
||||
{
|
||||
return $this->container['payOrderNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payOrderNo
|
||||
*
|
||||
* @param string $payOrderNo 付款订单号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayOrderNo($payOrderNo)
|
||||
{
|
||||
$this->container['payOrderNo'] = $payOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets realTradeAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getRealTradeAmount()
|
||||
{
|
||||
return $this->container['realTradeAmount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets realTradeAmount
|
||||
*
|
||||
* @param float $realTradeAmount 实际付款金额
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRealTradeAmount($realTradeAmount)
|
||||
{
|
||||
$this->container['realTradeAmount'] = $realTradeAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets totalRefundAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getTotalRefundAmount()
|
||||
{
|
||||
return $this->container['totalRefundAmount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets totalRefundAmount
|
||||
*
|
||||
* @param float $totalRefundAmount 总退款金额
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setTotalRefundAmount($totalRefundAmount)
|
||||
{
|
||||
$this->container['totalRefundAmount'] = $totalRefundAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets payeeMerchantId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayeeMerchantId()
|
||||
{
|
||||
return $this->container['payeeMerchantId'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payeeMerchantId
|
||||
*
|
||||
* @param string $payeeMerchantId 收款商户号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayeeMerchantId($payeeMerchantId)
|
||||
{
|
||||
$this->container['payeeMerchantId'] = $payeeMerchantId;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets payeeMerchantName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayeeMerchantName()
|
||||
{
|
||||
return $this->container['payeeMerchantName'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payeeMerchantName
|
||||
*
|
||||
* @param string $payeeMerchantName 收款商户名称
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayeeMerchantName($payeeMerchantName)
|
||||
{
|
||||
$this->container['payeeMerchantName'] = $payeeMerchantName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets payeeMCC
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayeeMCC()
|
||||
{
|
||||
return $this->container['payeeMCC'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payeeMCC
|
||||
*
|
||||
* @param string $payeeMCC 收款方MCC
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayeeMCC($payeeMCC)
|
||||
{
|
||||
$this->container['payeeMCC'] = $payeeMCC;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets status
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->container['status'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status
|
||||
*
|
||||
* @param string $status 订单状态
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->container['status'] = $status;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets couponInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCouponInfo()
|
||||
{
|
||||
return $this->container['couponInfo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets couponInfo
|
||||
*
|
||||
* @param string $couponInfo 营销信息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCouponInfo($couponInfo)
|
||||
{
|
||||
$this->container['couponInfo'] = $couponInfo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets origTxnAmt
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getOrigTxnAmt()
|
||||
{
|
||||
return $this->container['origTxnAmt'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets origTxnAmt
|
||||
*
|
||||
* @param float $origTxnAmt 初始交易金额(原订单金额)
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrigTxnAmt($origTxnAmt)
|
||||
{
|
||||
$this->container['origTxnAmt'] = $origTxnAmt;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets totalRefundOrigTxnAmt
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getTotalRefundOrigTxnAmt()
|
||||
{
|
||||
return $this->container['totalRefundOrigTxnAmt'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets totalRefundOrigTxnAmt
|
||||
*
|
||||
* @param float $totalRefundOrigTxnAmt 申请退款总金额
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setTotalRefundOrigTxnAmt($totalRefundOrigTxnAmt)
|
||||
{
|
||||
$this->container['totalRefundOrigTxnAmt'] = $totalRefundOrigTxnAmt;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets refundTradeDetailList
|
||||
*
|
||||
* @return \Yeepay\Yop\Sdk\Service\Frontcashier\Model\UpopActivescanQuerypayresultRefundTradeDetailResponseDTOResult[]
|
||||
*/
|
||||
public function getRefundTradeDetailList()
|
||||
{
|
||||
return $this->container['refundTradeDetailList'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets refundTradeDetailList
|
||||
*
|
||||
* @param \Yeepay\Yop\Sdk\Service\Frontcashier\Model\UpopActivescanQuerypayresultRefundTradeDetailResponseDTOResult[] $refundTradeDetailList 退款明细列表
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRefundTradeDetailList($refundTradeDetailList)
|
||||
{
|
||||
$this->container['refundTradeDetailList'] = $refundTradeDetailList;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,483 @@
|
||||
<?php
|
||||
/**
|
||||
* UpopActivescanQuerypayresultRefundTradeDetailResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
*
|
||||
* <p>前置收银台</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* UpopActivescanQuerypayresultRefundTradeDetailResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class UpopActivescanQuerypayresultRefundTradeDetailResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'UpopActivescanQuerypayresultRefundTradeDetailResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'payOrderNo' => 'string',
|
||||
'refundAmount' => 'float',
|
||||
'refundOrderNo' => 'string',
|
||||
'status' => 'string',
|
||||
'createTime' => 'string',
|
||||
'refundCouponInfo' => 'string',
|
||||
'refundOrigTxnAmt' => 'float'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'payOrderNo' => null,
|
||||
'refundAmount' => null,
|
||||
'refundOrderNo' => null,
|
||||
'status' => null,
|
||||
'createTime' => 'date-time',
|
||||
'refundCouponInfo' => null,
|
||||
'refundOrigTxnAmt' => 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 = [
|
||||
'payOrderNo' => 'payOrderNo',
|
||||
'refundAmount' => 'refundAmount',
|
||||
'refundOrderNo' => 'refundOrderNo',
|
||||
'status' => 'status',
|
||||
'createTime' => 'createTime',
|
||||
'refundCouponInfo' => 'refundCouponInfo',
|
||||
'refundOrigTxnAmt' => 'refundOrigTxnAmt'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'payOrderNo' => 'setPayOrderNo',
|
||||
'refundAmount' => 'setRefundAmount',
|
||||
'refundOrderNo' => 'setRefundOrderNo',
|
||||
'status' => 'setStatus',
|
||||
'createTime' => 'setCreateTime',
|
||||
'refundCouponInfo' => 'setRefundCouponInfo',
|
||||
'refundOrigTxnAmt' => 'setRefundOrigTxnAmt'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'payOrderNo' => 'getPayOrderNo',
|
||||
'refundAmount' => 'getRefundAmount',
|
||||
'refundOrderNo' => 'getRefundOrderNo',
|
||||
'status' => 'getStatus',
|
||||
'createTime' => 'getCreateTime',
|
||||
'refundCouponInfo' => 'getRefundCouponInfo',
|
||||
'refundOrigTxnAmt' => 'getRefundOrigTxnAmt'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['payOrderNo'] = isset($data['payOrderNo']) ? $data['payOrderNo'] : null;
|
||||
$this->container['refundAmount'] = isset($data['refundAmount']) ? $data['refundAmount'] : null;
|
||||
$this->container['refundOrderNo'] = isset($data['refundOrderNo']) ? $data['refundOrderNo'] : null;
|
||||
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
|
||||
$this->container['createTime'] = isset($data['createTime']) ? $data['createTime'] : null;
|
||||
$this->container['refundCouponInfo'] = isset($data['refundCouponInfo']) ? $data['refundCouponInfo'] : null;
|
||||
$this->container['refundOrigTxnAmt'] = isset($data['refundOrigTxnAmt']) ? $data['refundOrigTxnAmt'] : 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 payOrderNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayOrderNo()
|
||||
{
|
||||
return $this->container['payOrderNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payOrderNo
|
||||
*
|
||||
* @param string $payOrderNo 付款订单号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayOrderNo($payOrderNo)
|
||||
{
|
||||
$this->container['payOrderNo'] = $payOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets refundAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getRefundAmount()
|
||||
{
|
||||
return $this->container['refundAmount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets refundAmount
|
||||
*
|
||||
* @param float $refundAmount 退款金额
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRefundAmount($refundAmount)
|
||||
{
|
||||
$this->container['refundAmount'] = $refundAmount;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets refundOrderNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRefundOrderNo()
|
||||
{
|
||||
return $this->container['refundOrderNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets refundOrderNo
|
||||
*
|
||||
* @param string $refundOrderNo 退款订单号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRefundOrderNo($refundOrderNo)
|
||||
{
|
||||
$this->container['refundOrderNo'] = $refundOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets status
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->container['status'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets status
|
||||
*
|
||||
* @param string $status 退款状态
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->container['status'] = $status;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets createTime
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCreateTime()
|
||||
{
|
||||
return $this->container['createTime'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets createTime
|
||||
*
|
||||
* @param string $createTime 退款时间
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCreateTime($createTime)
|
||||
{
|
||||
$this->container['createTime'] = $createTime;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets refundCouponInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRefundCouponInfo()
|
||||
{
|
||||
return $this->container['refundCouponInfo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets refundCouponInfo
|
||||
*
|
||||
* @param string $refundCouponInfo 退款营销信息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRefundCouponInfo($refundCouponInfo)
|
||||
{
|
||||
$this->container['refundCouponInfo'] = $refundCouponInfo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets refundOrigTxnAmt
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getRefundOrigTxnAmt()
|
||||
{
|
||||
return $this->container['refundOrigTxnAmt'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets refundOrigTxnAmt
|
||||
*
|
||||
* @param float $refundOrigTxnAmt 申请退款金额(包含营销金额)
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setRefundOrigTxnAmt($refundOrigTxnAmt)
|
||||
{
|
||||
$this->container['refundOrigTxnAmt'] = $refundOrigTxnAmt;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class UpopActivescanQuerypayresultRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var
|
||||
*/
|
||||
private $body;
|
||||
|
||||
/**
|
||||
* Gets body
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public function getBody()
|
||||
{
|
||||
return $this->body;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets body
|
||||
*
|
||||
* @param $body
|
||||
* @return UpopActivescanQuerypayresultRequest
|
||||
*/
|
||||
public function setBody($body)
|
||||
{
|
||||
$this->body = $body;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'upopActivescanQuerypayresult';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
<?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 UpopActivescanQuerypayresultRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var UpopActivescanQuerypayresultRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new UpopActivescanQuerypayresultRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UpopActivescanQuerypayresultRequestMarshaller
|
||||
*/
|
||||
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/upop/activescan/querypayresult';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/json';
|
||||
|
||||
|
||||
/**
|
||||
* @param UpopActivescanQuerypayresultRequest $request
|
||||
* @return Request
|
||||
*/
|
||||
public function marshal($request)
|
||||
{
|
||||
$internalRequest = new DefaultRequest($this->serviceName);
|
||||
$internalRequest->setResourcePath($this->resourcePath);
|
||||
$internalRequest->setHttpMethod($this->httpMethod);
|
||||
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
|
||||
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
|
||||
$internalRequest->addHeader($name, $value);
|
||||
}
|
||||
}
|
||||
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
|
||||
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
|
||||
}
|
||||
$content = (string)$request->getBody();
|
||||
$internalRequest->setContent($content);
|
||||
$internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content));
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
UpopActivescanQuerypayresultRequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class UpopActivescanQuerypayresultResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var UpopActivescanQuerypayresultOpenQueryActiveScanPayResultResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\UpopActivescanQuerypayresultOpenQueryActiveScanPayResultResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param UpopActivescanQuerypayresultOpenQueryActiveScanPayResultResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UpopActivescanQuerypayresultOpenQueryActiveScanPayResultResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class UpopActivescanQuerypayresultResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var UpopActivescanQuerypayresultResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new UpopActivescanQuerypayresultResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UpopActivescanQuerypayresultResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UpopActivescanQuerypayresultResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new UpopActivescanQuerypayresultResponse();
|
||||
}
|
||||
}
|
||||
|
||||
UpopActivescanQuerypayresultResponseUnMarshaller::__init();
|
||||
@@ -0,0 +1,452 @@
|
||||
<?php
|
||||
/**
|
||||
* UpopPassivescanBindQrcodeOpenPassiveScanPayResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
*
|
||||
* <p>前置收银台</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* UpopPassivescanBindQrcodeOpenPassiveScanPayResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class UpopPassivescanBindQrcodeOpenPassiveScanPayResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'UpopPassivescanBindQrcodeOpenPassiveScanPayResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'payOrderNo' => 'string',
|
||||
'qrCode' => 'string',
|
||||
'orderValidTime' => 'int',
|
||||
'orderDate' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'payOrderNo' => null,
|
||||
'qrCode' => null,
|
||||
'orderValidTime' => 'int32',
|
||||
'orderDate' => 'date-time'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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',
|
||||
'payOrderNo' => 'payOrderNo',
|
||||
'qrCode' => 'qrCode',
|
||||
'orderValidTime' => 'orderValidTime',
|
||||
'orderDate' => 'orderDate'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'payOrderNo' => 'setPayOrderNo',
|
||||
'qrCode' => 'setQrCode',
|
||||
'orderValidTime' => 'setOrderValidTime',
|
||||
'orderDate' => 'setOrderDate'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'payOrderNo' => 'getPayOrderNo',
|
||||
'qrCode' => 'getQrCode',
|
||||
'orderValidTime' => 'getOrderValidTime',
|
||||
'orderDate' => 'getOrderDate'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['payOrderNo'] = isset($data['payOrderNo']) ? $data['payOrderNo'] : null;
|
||||
$this->container['qrCode'] = isset($data['qrCode']) ? $data['qrCode'] : null;
|
||||
$this->container['orderValidTime'] = isset($data['orderValidTime']) ? $data['orderValidTime'] : null;
|
||||
$this->container['orderDate'] = isset($data['orderDate']) ? $data['orderDate'] : 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 payOrderNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayOrderNo()
|
||||
{
|
||||
return $this->container['payOrderNo'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payOrderNo
|
||||
*
|
||||
* @param string $payOrderNo 付款方订单号
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayOrderNo($payOrderNo)
|
||||
{
|
||||
$this->container['payOrderNo'] = $payOrderNo;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets qrCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getQrCode()
|
||||
{
|
||||
return $this->container['qrCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets qrCode
|
||||
*
|
||||
* @param string $qrCode 二维码信息
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setQrCode($qrCode)
|
||||
{
|
||||
$this->container['qrCode'] = $qrCode;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderValidTime
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getOrderValidTime()
|
||||
{
|
||||
return $this->container['orderValidTime'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderValidTime
|
||||
*
|
||||
* @param int $orderValidTime 有效期时间
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderValidTime($orderValidTime)
|
||||
{
|
||||
$this->container['orderValidTime'] = $orderValidTime;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets orderDate
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderDate()
|
||||
{
|
||||
return $this->container['orderDate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets orderDate
|
||||
*
|
||||
* @param string $orderDate 订单创建时间
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderDate($orderDate)
|
||||
{
|
||||
$this->container['orderDate'] = $orderDate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,392 @@
|
||||
<?php
|
||||
/**
|
||||
* UpopPassivescanValidateOpenPassiveValidateResponseDTOResult
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 前置收银台
|
||||
*
|
||||
* <p>前置收银台</p>
|
||||
*
|
||||
* OpenAPI spec version: 1.0
|
||||
*
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
* Swagger Codegen version: 3.0.13
|
||||
*/
|
||||
|
||||
/**
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* UpopPassivescanValidateOpenPassiveValidateResponseDTOResult Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class UpopPassivescanValidateOpenPassiveValidateResponseDTOResult implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'UpopPassivescanValidateOpenPassiveValidateResponseDTOResult';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'code' => 'string',
|
||||
'message' => 'string',
|
||||
'merchantFlowId' => 'string',
|
||||
'dealStatus' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'code' => null,
|
||||
'message' => null,
|
||||
'merchantFlowId' => null,
|
||||
'dealStatus' => 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',
|
||||
'merchantFlowId' => 'merchantFlowId',
|
||||
'dealStatus' => 'dealStatus'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'code' => 'setCode',
|
||||
'message' => 'setMessage',
|
||||
'merchantFlowId' => 'setMerchantFlowId',
|
||||
'dealStatus' => 'setDealStatus'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'code' => 'getCode',
|
||||
'message' => 'getMessage',
|
||||
'merchantFlowId' => 'getMerchantFlowId',
|
||||
'dealStatus' => 'getDealStatus'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['merchantFlowId'] = isset($data['merchantFlowId']) ? $data['merchantFlowId'] : null;
|
||||
$this->container['dealStatus'] = isset($data['dealStatus']) ? $data['dealStatus'] : 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 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 dealStatus
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDealStatus()
|
||||
{
|
||||
return $this->container['dealStatus'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets dealStatus
|
||||
*
|
||||
* @param string $dealStatus 处理状态
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setDealStatus($dealStatus)
|
||||
{
|
||||
$this->container['dealStatus'] = $dealStatus;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
{
|
||||
return isset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
{
|
||||
return isset($this->container[$offset]) ? $this->container[$offset] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets value based on offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
* @param mixed $value Value to be set
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
{
|
||||
if (is_null($offset)) {
|
||||
$this->container[] = $value;
|
||||
} else {
|
||||
$this->container[$offset] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Unsets offset.
|
||||
*
|
||||
* @param integer $offset Offset
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
{
|
||||
unset($this->container[$offset]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the string presentation of the object
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
|
||||
return json_encode(
|
||||
ObjectSerializer::sanitizeForSerialization($this),
|
||||
JSON_PRETTY_PRINT
|
||||
);
|
||||
}
|
||||
|
||||
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class UpopPassivescanValidateRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $merchantFlowId;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $payOrderNo;
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $couponInfo;
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
private $realTradeAmount;
|
||||
|
||||
/**
|
||||
* Gets merchantFlowId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMerchantFlowId()
|
||||
{
|
||||
return $this->merchantFlowId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets merchantFlowId
|
||||
*
|
||||
* @param string $merchantFlowId
|
||||
* @return UpopPassivescanValidateRequest
|
||||
*/
|
||||
public function setMerchantFlowId($merchantFlowId)
|
||||
{
|
||||
$this->merchantFlowId = $merchantFlowId;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets payOrderNo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPayOrderNo()
|
||||
{
|
||||
return $this->payOrderNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payOrderNo
|
||||
*
|
||||
* @param string $payOrderNo
|
||||
* @return UpopPassivescanValidateRequest
|
||||
*/
|
||||
public function setPayOrderNo($payOrderNo)
|
||||
{
|
||||
$this->payOrderNo = $payOrderNo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets couponInfo
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCouponInfo()
|
||||
{
|
||||
return $this->couponInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets couponInfo
|
||||
*
|
||||
* @param string $couponInfo
|
||||
* @return UpopPassivescanValidateRequest
|
||||
*/
|
||||
public function setCouponInfo($couponInfo)
|
||||
{
|
||||
$this->couponInfo = $couponInfo;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Gets realTradeAmount
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getRealTradeAmount()
|
||||
{
|
||||
return $this->realTradeAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets realTradeAmount
|
||||
*
|
||||
* @param float $realTradeAmount
|
||||
* @return UpopPassivescanValidateRequest
|
||||
*/
|
||||
public function setRealTradeAmount($realTradeAmount)
|
||||
{
|
||||
$this->realTradeAmount = $realTradeAmount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public static function getOperationId()
|
||||
{
|
||||
return 'upopPassivescanValidate';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -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 UpopPassivescanValidateRequestMarshaller implements RequestMarshaller
|
||||
{
|
||||
/**
|
||||
* @var UpopPassivescanValidateRequestMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new UpopPassivescanValidateRequestMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UpopPassivescanValidateRequestMarshaller
|
||||
*/
|
||||
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/upop/passivescan/validate';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
|
||||
/**
|
||||
* @param UpopPassivescanValidateRequest $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->getMerchantFlowId() != null){
|
||||
$internalRequest->addParameter('merchantFlowId', ObjectSerializer::sanitizeForSerialization($request->getMerchantFlowId(), 'string'));
|
||||
}
|
||||
if($request->getPayOrderNo() != null){
|
||||
$internalRequest->addParameter('payOrderNo', ObjectSerializer::sanitizeForSerialization($request->getPayOrderNo(), 'string'));
|
||||
}
|
||||
if($request->getCouponInfo() != null){
|
||||
$internalRequest->addParameter('couponInfo', ObjectSerializer::sanitizeForSerialization($request->getCouponInfo(), 'string'));
|
||||
}
|
||||
if($request->getRealTradeAmount() != null){
|
||||
$internalRequest->addParameter('realTradeAmount', ObjectSerializer::sanitizeForSerialization($request->getRealTradeAmount(), 'float'));
|
||||
}
|
||||
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
|
||||
|
||||
return $internalRequest;
|
||||
}
|
||||
}
|
||||
UpopPassivescanValidateRequestMarshaller::__init();
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
class UpopPassivescanValidateResponse extends \Yeepay\Yop\Sdk\Model\BaseResponse
|
||||
{
|
||||
/**
|
||||
* @var UpopPassivescanValidateOpenPassiveValidateResponseDTOResult
|
||||
*/
|
||||
private $result;
|
||||
|
||||
function getResultClass()
|
||||
{
|
||||
return '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\UpopPassivescanValidateOpenPassiveValidateResponseDTOResult';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param UpopPassivescanValidateOpenPassiveValidateResponseDTOResult $result
|
||||
*/
|
||||
function setResult($result)
|
||||
{
|
||||
$this->result = $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UpopPassivescanValidateOpenPassiveValidateResponseDTOResult
|
||||
*/
|
||||
function getResult()
|
||||
{
|
||||
return $this->result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Yeepay\Yop\Sdk\Service\Frontcashier\Model;
|
||||
|
||||
|
||||
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
|
||||
|
||||
class UpopPassivescanValidateResponseUnMarshaller extends BaseResponseUnMarshaller
|
||||
{
|
||||
|
||||
/**
|
||||
* @var UpopPassivescanValidateResponseUnMarshaller
|
||||
*/
|
||||
private static $instance;
|
||||
|
||||
public static function __init()
|
||||
{
|
||||
self::$instance = new UpopPassivescanValidateResponseUnMarshaller();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UpopPassivescanValidateResponseUnMarshaller
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
return self::$instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return UpopPassivescanValidateResponse
|
||||
*/
|
||||
protected function getResponseInstance()
|
||||
{
|
||||
return new UpopPassivescanValidateResponse();
|
||||
}
|
||||
}
|
||||
|
||||
UpopPassivescanValidateResponseUnMarshaller::__init();
|
||||
Reference in New Issue
Block a user