增加聚合支付托管下单

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

View File

@@ -0,0 +1,692 @@
<?php
/**
* GetPosInfoDtosPosInfoDtoResult
*
* PHP version 5
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* pos
*
* <p>pos对外接口</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\Pos\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* GetPosInfoDtosPosInfoDtoResult Class Doc Comment
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class GetPosInfoDtosPosInfoDtoResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetPosInfoDtosPosInfoDtoResult';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'serialNumber' => 'string',
'posCATI' => 'string',
'customerNumber' => 'string',
'shortName' => 'string',
'shopCustomerNumber' => 'string',
'shopName' => 'string',
'address' => 'string',
'fullName' => 'string',
'productLine' => 'string',
'salesName' => 'string',
'posStatus' => 'string',
'posType' => 'string',
'posManufacturer' => 'string',
'posCreateTime' => 'string'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'serialNumber' => null,
'posCATI' => null,
'customerNumber' => null,
'shortName' => null,
'shopCustomerNumber' => null,
'shopName' => null,
'address' => null,
'fullName' => null,
'productLine' => null,
'salesName' => null,
'posStatus' => null,
'posType' => null,
'posManufacturer' => null,
'posCreateTime' => '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 = [
'serialNumber' => 'serialNumber',
'posCATI' => 'posCATI',
'customerNumber' => 'customerNumber',
'shortName' => 'shortName',
'shopCustomerNumber' => 'shopCustomerNumber',
'shopName' => 'shopName',
'address' => 'address',
'fullName' => 'fullName',
'productLine' => 'productLine',
'salesName' => 'salesName',
'posStatus' => 'posStatus',
'posType' => 'posType',
'posManufacturer' => 'posManufacturer',
'posCreateTime' => 'posCreateTime'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'serialNumber' => 'setSerialNumber',
'posCATI' => 'setPosCATI',
'customerNumber' => 'setCustomerNumber',
'shortName' => 'setShortName',
'shopCustomerNumber' => 'setShopCustomerNumber',
'shopName' => 'setShopName',
'address' => 'setAddress',
'fullName' => 'setFullName',
'productLine' => 'setProductLine',
'salesName' => 'setSalesName',
'posStatus' => 'setPosStatus',
'posType' => 'setPosType',
'posManufacturer' => 'setPosManufacturer',
'posCreateTime' => 'setPosCreateTime'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'serialNumber' => 'getSerialNumber',
'posCATI' => 'getPosCATI',
'customerNumber' => 'getCustomerNumber',
'shortName' => 'getShortName',
'shopCustomerNumber' => 'getShopCustomerNumber',
'shopName' => 'getShopName',
'address' => 'getAddress',
'fullName' => 'getFullName',
'productLine' => 'getProductLine',
'salesName' => 'getSalesName',
'posStatus' => 'getPosStatus',
'posType' => 'getPosType',
'posManufacturer' => 'getPosManufacturer',
'posCreateTime' => 'getPosCreateTime'
];
/**
* 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['serialNumber'] = isset($data['serialNumber']) ? $data['serialNumber'] : null;
$this->container['posCATI'] = isset($data['posCATI']) ? $data['posCATI'] : null;
$this->container['customerNumber'] = isset($data['customerNumber']) ? $data['customerNumber'] : null;
$this->container['shortName'] = isset($data['shortName']) ? $data['shortName'] : null;
$this->container['shopCustomerNumber'] = isset($data['shopCustomerNumber']) ? $data['shopCustomerNumber'] : null;
$this->container['shopName'] = isset($data['shopName']) ? $data['shopName'] : null;
$this->container['address'] = isset($data['address']) ? $data['address'] : null;
$this->container['fullName'] = isset($data['fullName']) ? $data['fullName'] : null;
$this->container['productLine'] = isset($data['productLine']) ? $data['productLine'] : null;
$this->container['salesName'] = isset($data['salesName']) ? $data['salesName'] : null;
$this->container['posStatus'] = isset($data['posStatus']) ? $data['posStatus'] : null;
$this->container['posType'] = isset($data['posType']) ? $data['posType'] : null;
$this->container['posManufacturer'] = isset($data['posManufacturer']) ? $data['posManufacturer'] : null;
$this->container['posCreateTime'] = isset($data['posCreateTime']) ? $data['posCreateTime'] : 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 serialNumber
*
* @return string
*/
public function getSerialNumber()
{
return $this->container['serialNumber'];
}
/**
* Sets serialNumber
*
* @param string $serialNumber 机具序列号
*
* @return $this
*/
public function setSerialNumber($serialNumber)
{
$this->container['serialNumber'] = $serialNumber;
return $this;
}
/**
* Gets posCATI
*
* @return string
*/
public function getPosCATI()
{
return $this->container['posCATI'];
}
/**
* Sets posCATI
*
* @param string $posCATI 终端号
*
* @return $this
*/
public function setPosCATI($posCATI)
{
$this->container['posCATI'] = $posCATI;
return $this;
}
/**
* Gets customerNumber
*
* @return string
*/
public function getCustomerNumber()
{
return $this->container['customerNumber'];
}
/**
* Sets customerNumber
*
* @param string $customerNumber 商户编号
*
* @return $this
*/
public function setCustomerNumber($customerNumber)
{
$this->container['customerNumber'] = $customerNumber;
return $this;
}
/**
* Gets shortName
*
* @return string
*/
public function getShortName()
{
return $this->container['shortName'];
}
/**
* Sets shortName
*
* @param string $shortName 商户简称
*
* @return $this
*/
public function setShortName($shortName)
{
$this->container['shortName'] = $shortName;
return $this;
}
/**
* Gets shopCustomerNumber
*
* @return string
*/
public function getShopCustomerNumber()
{
return $this->container['shopCustomerNumber'];
}
/**
* Sets shopCustomerNumber
*
* @param string $shopCustomerNumber 网点商户编号
*
* @return $this
*/
public function setShopCustomerNumber($shopCustomerNumber)
{
$this->container['shopCustomerNumber'] = $shopCustomerNumber;
return $this;
}
/**
* Gets shopName
*
* @return string
*/
public function getShopName()
{
return $this->container['shopName'];
}
/**
* Sets shopName
*
* @param string $shopName 网点名称
*
* @return $this
*/
public function setShopName($shopName)
{
$this->container['shopName'] = $shopName;
return $this;
}
/**
* Gets address
*
* @return string
*/
public function getAddress()
{
return $this->container['address'];
}
/**
* Sets address
*
* @param string $address 网点详细地址
*
* @return $this
*/
public function setAddress($address)
{
$this->container['address'] = $address;
return $this;
}
/**
* Gets fullName
*
* @return string
*/
public function getFullName()
{
return $this->container['fullName'];
}
/**
* Sets fullName
*
* @param string $fullName 商户全称
*
* @return $this
*/
public function setFullName($fullName)
{
$this->container['fullName'] = $fullName;
return $this;
}
/**
* Gets productLine
*
* @return string
*/
public function getProductLine()
{
return $this->container['productLine'];
}
/**
* Sets productLine
*
* @param string $productLine 产品线
*
* @return $this
*/
public function setProductLine($productLine)
{
$this->container['productLine'] = $productLine;
return $this;
}
/**
* Gets salesName
*
* @return string
*/
public function getSalesName()
{
return $this->container['salesName'];
}
/**
* Sets salesName
*
* @param string $salesName 销售名称
*
* @return $this
*/
public function setSalesName($salesName)
{
$this->container['salesName'] = $salesName;
return $this;
}
/**
* Gets posStatus
*
* @return string
*/
public function getPosStatus()
{
return $this->container['posStatus'];
}
/**
* Sets posStatus
*
* @param string $posStatus 机具状态
*
* @return $this
*/
public function setPosStatus($posStatus)
{
$this->container['posStatus'] = $posStatus;
return $this;
}
/**
* Gets posType
*
* @return string
*/
public function getPosType()
{
return $this->container['posType'];
}
/**
* Sets posType
*
* @param string $posType 机具型号
*
* @return $this
*/
public function setPosType($posType)
{
$this->container['posType'] = $posType;
return $this;
}
/**
* Gets posManufacturer
*
* @return string
*/
public function getPosManufacturer()
{
return $this->container['posManufacturer'];
}
/**
* Sets posManufacturer
*
* @param string $posManufacturer 机具所属厂商
*
* @return $this
*/
public function setPosManufacturer($posManufacturer)
{
$this->container['posManufacturer'] = $posManufacturer;
return $this;
}
/**
* Gets posCreateTime
*
* @return string
*/
public function getPosCreateTime()
{
return $this->container['posCreateTime'];
}
/**
* Sets posCreateTime
*
* @param string $posCreateTime 绑机时间
*
* @return $this
*/
public function setPosCreateTime($posCreateTime)
{
$this->container['posCreateTime'] = $posCreateTime;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param integer $offset Offset
*
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param integer $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param integer $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param integer $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,362 @@
<?php
/**
* GetPosInfoDtosPosInfoResponseParamResult
*
* PHP version 5
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* pos
*
* <p>pos对外接口</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\Pos\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* GetPosInfoDtosPosInfoResponseParamResult Class Doc Comment
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class GetPosInfoDtosPosInfoResponseParamResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'GetPosInfoDtosPosInfoResponseParamResult';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'returnMsg' => 'string',
'returnCode' => 'string',
'posInfos' => '\Yeepay\Yop\Sdk\Service\Pos\Model\GetPosInfoDtosPosInfoDtoResult[]'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'returnMsg' => null,
'returnCode' => null,
'posInfos' => 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 = [
'returnMsg' => 'returnMsg',
'returnCode' => 'returnCode',
'posInfos' => 'posInfos'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'returnMsg' => 'setReturnMsg',
'returnCode' => 'setReturnCode',
'posInfos' => 'setPosInfos'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'returnMsg' => 'getReturnMsg',
'returnCode' => 'getReturnCode',
'posInfos' => 'getPosInfos'
];
/**
* 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['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
$this->container['posInfos'] = isset($data['posInfos']) ? $data['posInfos'] : 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 returnMsg
*
* @return string
*/
public function getReturnMsg()
{
return $this->container['returnMsg'];
}
/**
* Sets returnMsg
*
* @param string $returnMsg 返回信息
*
* @return $this
*/
public function setReturnMsg($returnMsg)
{
$this->container['returnMsg'] = $returnMsg;
return $this;
}
/**
* Gets returnCode
*
* @return string
*/
public function getReturnCode()
{
return $this->container['returnCode'];
}
/**
* Sets returnCode
*
* @param string $returnCode 返回码
*
* @return $this
*/
public function setReturnCode($returnCode)
{
$this->container['returnCode'] = $returnCode;
return $this;
}
/**
* Gets posInfos
*
* @return \Yeepay\Yop\Sdk\Service\Pos\Model\GetPosInfoDtosPosInfoDtoResult[]
*/
public function getPosInfos()
{
return $this->container['posInfos'];
}
/**
* Sets posInfos
*
* @param \Yeepay\Yop\Sdk\Service\Pos\Model\GetPosInfoDtosPosInfoDtoResult[] $posInfos 未命名
*
* @return $this
*/
public function setPosInfos($posInfos)
{
$this->container['posInfos'] = $posInfos;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param integer $offset Offset
*
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param integer $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param integer $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param integer $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,117 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Pos\Model;
class GetPosInfoDtosRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
{
/**
* @var string
*/
private $customerNumber;
/**
* @var string
*/
private $posCati;
/**
* @var string
*/
private $serialNumber;
/**
* @var string
*/
private $shopName;
/**
* Gets customerNumber
*
* @return string
*/
public function getCustomerNumber()
{
return $this->customerNumber;
}
/**
* Sets customerNumber
*
* @param string $customerNumber
* @return GetPosInfoDtosRequest
*/
public function setCustomerNumber($customerNumber)
{
$this->customerNumber = $customerNumber;
return $this;
}
/**
* Gets posCati
*
* @return string
*/
public function getPosCati()
{
return $this->posCati;
}
/**
* Sets posCati
*
* @param string $posCati
* @return GetPosInfoDtosRequest
*/
public function setPosCati($posCati)
{
$this->posCati = $posCati;
return $this;
}
/**
* Gets serialNumber
*
* @return string
*/
public function getSerialNumber()
{
return $this->serialNumber;
}
/**
* Sets serialNumber
*
* @param string $serialNumber
* @return GetPosInfoDtosRequest
*/
public function setSerialNumber($serialNumber)
{
$this->serialNumber = $serialNumber;
return $this;
}
/**
* Gets shopName
*
* @return string
*/
public function getShopName()
{
return $this->shopName;
}
/**
* Sets shopName
*
* @param string $shopName
* @return GetPosInfoDtosRequest
*/
public function setShopName($shopName)
{
$this->shopName = $shopName;
return $this;
}
public static function getOperationId()
{
return 'getPosInfoDtos';
}
}

View File

@@ -0,0 +1,89 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Pos\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 GetPosInfoDtosRequestMarshaller implements RequestMarshaller
{
/**
* @var GetPosInfoDtosRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new GetPosInfoDtosRequestMarshaller();
}
/**
* @return GetPosInfoDtosRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Pos';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/pos/get-pos-info-dtos';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param GetPosInfoDtosRequest $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->getCustomerNumber() != null){
$internalRequest->addParameter('customerNumber', ObjectSerializer::sanitizeForSerialization($request->getCustomerNumber(), 'string'));
}
if($request->getPosCati() != null){
$internalRequest->addParameter('posCati', ObjectSerializer::sanitizeForSerialization($request->getPosCati(), 'string'));
}
if($request->getSerialNumber() != null){
$internalRequest->addParameter('serialNumber', ObjectSerializer::sanitizeForSerialization($request->getSerialNumber(), 'string'));
}
if($request->getShopName() != null){
$internalRequest->addParameter('shopName', ObjectSerializer::sanitizeForSerialization($request->getShopName(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
GetPosInfoDtosRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,543 @@
<?php
/**
* InstallPosWithProductInstallPosWithProductParamParam
*
* PHP version 5
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* pos
*
* <p>pos对外接口</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\Pos\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* InstallPosWithProductInstallPosWithProductParamParam 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 InstallPosWithProductInstallPosWithProductParamParam implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'InstallPosWithProductInstallPosWithProductParamParam';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'customerNumber' => 'string',
'agentCode' => 'string',
'productCode' => 'string',
'externalMcc' => 'string',
'customerType' => 'string',
'shopList' => '\Yeepay\Yop\Sdk\Service\Pos\Model\InstallPosWithProductPreShopParam[]',
'posList' => '\Yeepay\Yop\Sdk\Service\Pos\Model\InstallPosWithProductPrePosParam[]',
'timeStampbind' => 'int',
'hmacbind' => 'string'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'customerNumber' => null,
'agentCode' => null,
'productCode' => null,
'externalMcc' => null,
'customerType' => null,
'shopList' => null,
'posList' => null,
'timeStampbind' => 'int64',
'hmacbind' => 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 = [
'customerNumber' => 'customerNumber',
'agentCode' => 'agentCode',
'productCode' => 'productCode',
'externalMcc' => 'externalMcc',
'customerType' => 'customerType',
'shopList' => 'shopList',
'posList' => 'posList',
'timeStampbind' => 'timeStampbind',
'hmacbind' => 'hmacbind'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'customerNumber' => 'setCustomerNumber',
'agentCode' => 'setAgentCode',
'productCode' => 'setProductCode',
'externalMcc' => 'setExternalMcc',
'customerType' => 'setCustomerType',
'shopList' => 'setShopList',
'posList' => 'setPosList',
'timeStampbind' => 'setTimeStampbind',
'hmacbind' => 'setHmacbind'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'customerNumber' => 'getCustomerNumber',
'agentCode' => 'getAgentCode',
'productCode' => 'getProductCode',
'externalMcc' => 'getExternalMcc',
'customerType' => 'getCustomerType',
'shopList' => 'getShopList',
'posList' => 'getPosList',
'timeStampbind' => 'getTimeStampbind',
'hmacbind' => 'getHmacbind'
];
/**
* 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['customerNumber'] = isset($data['customerNumber']) ? $data['customerNumber'] : null;
$this->container['agentCode'] = isset($data['agentCode']) ? $data['agentCode'] : null;
$this->container['productCode'] = isset($data['productCode']) ? $data['productCode'] : null;
$this->container['externalMcc'] = isset($data['externalMcc']) ? $data['externalMcc'] : null;
$this->container['customerType'] = isset($data['customerType']) ? $data['customerType'] : null;
$this->container['shopList'] = isset($data['shopList']) ? $data['shopList'] : null;
$this->container['posList'] = isset($data['posList']) ? $data['posList'] : null;
$this->container['timeStampbind'] = isset($data['timeStampbind']) ? $data['timeStampbind'] : null;
$this->container['hmacbind'] = isset($data['hmacbind']) ? $data['hmacbind'] : 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 customerNumber
*
* @return string
*/
public function getCustomerNumber()
{
return $this->container['customerNumber'];
}
/**
* Sets customerNumber
*
* @param string $customerNumber customerNumber
*
* @return $this
*/
public function setCustomerNumber($customerNumber)
{
$this->container['customerNumber'] = $customerNumber;
return $this;
}
/**
* Gets agentCode
*
* @return string
*/
public function getAgentCode()
{
return $this->container['agentCode'];
}
/**
* Sets agentCode
*
* @param string $agentCode agentCode
*
* @return $this
*/
public function setAgentCode($agentCode)
{
$this->container['agentCode'] = $agentCode;
return $this;
}
/**
* Gets productCode
*
* @return string
*/
public function getProductCode()
{
return $this->container['productCode'];
}
/**
* Sets productCode
*
* @param string $productCode productCode
*
* @return $this
*/
public function setProductCode($productCode)
{
$this->container['productCode'] = $productCode;
return $this;
}
/**
* Gets externalMcc
*
* @return string
*/
public function getExternalMcc()
{
return $this->container['externalMcc'];
}
/**
* Sets externalMcc
*
* @param string $externalMcc externalMcc
*
* @return $this
*/
public function setExternalMcc($externalMcc)
{
$this->container['externalMcc'] = $externalMcc;
return $this;
}
/**
* Gets customerType
*
* @return string
*/
public function getCustomerType()
{
return $this->container['customerType'];
}
/**
* Sets customerType
*
* @param string $customerType customerType
*
* @return $this
*/
public function setCustomerType($customerType)
{
$this->container['customerType'] = $customerType;
return $this;
}
/**
* Gets shopList
*
* @return \Yeepay\Yop\Sdk\Service\Pos\Model\InstallPosWithProductPreShopParam[]
*/
public function getShopList()
{
return $this->container['shopList'];
}
/**
* Sets shopList
*
* @param \Yeepay\Yop\Sdk\Service\Pos\Model\InstallPosWithProductPreShopParam[] $shopList shopList
*
* @return $this
*/
public function setShopList($shopList)
{
$this->container['shopList'] = $shopList;
return $this;
}
/**
* Gets posList
*
* @return \Yeepay\Yop\Sdk\Service\Pos\Model\InstallPosWithProductPrePosParam[]
*/
public function getPosList()
{
return $this->container['posList'];
}
/**
* Sets posList
*
* @param \Yeepay\Yop\Sdk\Service\Pos\Model\InstallPosWithProductPrePosParam[] $posList posList
*
* @return $this
*/
public function setPosList($posList)
{
$this->container['posList'] = $posList;
return $this;
}
/**
* Gets timeStampbind
*
* @return int
*/
public function getTimeStampbind()
{
return $this->container['timeStampbind'];
}
/**
* Sets timeStampbind
*
* @param int $timeStampbind timeStampbind
*
* @return $this
*/
public function setTimeStampbind($timeStampbind)
{
$this->container['timeStampbind'] = $timeStampbind;
return $this;
}
/**
* Gets hmacbind
*
* @return string
*/
public function getHmacbind()
{
return $this->container['hmacbind'];
}
/**
* Sets hmacbind
*
* @param string $hmacbind hmacbind
*
* @return $this
*/
public function setHmacbind($hmacbind)
{
$this->container['hmacbind'] = $hmacbind;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param integer $offset Offset
*
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param integer $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param integer $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param integer $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,333 @@
<?php
/**
* InstallPosWithProductPrePosParam
*
* PHP version 5
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* pos
*
* <p>pos对外接口</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\Pos\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* InstallPosWithProductPrePosParam Class Doc Comment
*
* @category Class
* @description
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class InstallPosWithProductPrePosParam implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'InstallPosWithProductPrePosParam';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'preShopName' => 'string',
'serialNumber' => 'string'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'preShopName' => null,
'serialNumber' => 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 = [
'preShopName' => 'preShopName',
'serialNumber' => 'serialNumber'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'preShopName' => 'setPreShopName',
'serialNumber' => 'setSerialNumber'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'preShopName' => 'getPreShopName',
'serialNumber' => 'getSerialNumber'
];
/**
* 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['preShopName'] = isset($data['preShopName']) ? $data['preShopName'] : null;
$this->container['serialNumber'] = isset($data['serialNumber']) ? $data['serialNumber'] : 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 preShopName
*
* @return string
*/
public function getPreShopName()
{
return $this->container['preShopName'];
}
/**
* Sets preShopName
*
* @param string $preShopName preShopName
*
* @return $this
*/
public function setPreShopName($preShopName)
{
$this->container['preShopName'] = $preShopName;
return $this;
}
/**
* Gets serialNumber
*
* @return string
*/
public function getSerialNumber()
{
return $this->container['serialNumber'];
}
/**
* Sets serialNumber
*
* @param string $serialNumber serialNumber
*
* @return $this
*/
public function setSerialNumber($serialNumber)
{
$this->container['serialNumber'] = $serialNumber;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param integer $offset Offset
*
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param integer $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param integer $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param integer $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,723 @@
<?php
/**
* InstallPosWithProductPreShopParam
*
* PHP version 5
*
* @category Class
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* pos
*
* <p>pos对外接口</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\Pos\Model;
use \ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* InstallPosWithProductPreShopParam Class Doc Comment
*
* @category Class
* @description 需要新增网点或者修改网点时必填
* @package Yeepay\Yop\Sdk\
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class InstallPosWithProductPreShopParam implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $swaggerModelName = 'InstallPosWithProductPreShopParam';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerTypes = [
'name' => 'string',
'createTime' => 'string',
'address' => 'string',
'linkman' => 'string',
'phone' => 'string',
'mobile' => 'string',
'orderCode' => 'string',
'status' => 'string',
'province' => 'string',
'city' => 'string',
'county' => 'string',
'bindphone' => 'string',
'isupdate' => 'bool',
'isNew' => 'bool',
'default' => 'bool'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $swaggerFormats = [
'name' => null,
'createTime' => 'date-time',
'address' => null,
'linkman' => null,
'phone' => null,
'mobile' => null,
'orderCode' => null,
'status' => null,
'province' => null,
'city' => null,
'county' => null,
'bindphone' => null,
'isupdate' => null,
'isNew' => null,
'default' => 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 = [
'name' => 'name',
'createTime' => 'createTime',
'address' => 'address',
'linkman' => 'linkman',
'phone' => 'phone',
'mobile' => 'mobile',
'orderCode' => 'orderCode',
'status' => 'status',
'province' => 'province',
'city' => 'city',
'county' => 'county',
'bindphone' => 'bindphone',
'isupdate' => 'isupdate',
'isNew' => 'isNew',
'default' => 'default'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'name' => 'setName',
'createTime' => 'setCreateTime',
'address' => 'setAddress',
'linkman' => 'setLinkman',
'phone' => 'setPhone',
'mobile' => 'setMobile',
'orderCode' => 'setOrderCode',
'status' => 'setStatus',
'province' => 'setProvince',
'city' => 'setCity',
'county' => 'setCounty',
'bindphone' => 'setBindphone',
'isupdate' => 'setIsupdate',
'isNew' => 'setIsNew',
'default' => 'setDefault'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'name' => 'getName',
'createTime' => 'getCreateTime',
'address' => 'getAddress',
'linkman' => 'getLinkman',
'phone' => 'getPhone',
'mobile' => 'getMobile',
'orderCode' => 'getOrderCode',
'status' => 'getStatus',
'province' => 'getProvince',
'city' => 'getCity',
'county' => 'getCounty',
'bindphone' => 'getBindphone',
'isupdate' => 'getIsupdate',
'isNew' => 'getIsNew',
'default' => 'getDefault'
];
/**
* 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['name'] = isset($data['name']) ? $data['name'] : null;
$this->container['createTime'] = isset($data['createTime']) ? $data['createTime'] : null;
$this->container['address'] = isset($data['address']) ? $data['address'] : null;
$this->container['linkman'] = isset($data['linkman']) ? $data['linkman'] : null;
$this->container['phone'] = isset($data['phone']) ? $data['phone'] : null;
$this->container['mobile'] = isset($data['mobile']) ? $data['mobile'] : null;
$this->container['orderCode'] = isset($data['orderCode']) ? $data['orderCode'] : null;
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['province'] = isset($data['province']) ? $data['province'] : null;
$this->container['city'] = isset($data['city']) ? $data['city'] : null;
$this->container['county'] = isset($data['county']) ? $data['county'] : null;
$this->container['bindphone'] = isset($data['bindphone']) ? $data['bindphone'] : null;
$this->container['isupdate'] = isset($data['isupdate']) ? $data['isupdate'] : null;
$this->container['isNew'] = isset($data['isNew']) ? $data['isNew'] : null;
$this->container['default'] = isset($data['default']) ? $data['default'] : 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 name
*
* @return string
*/
public function getName()
{
return $this->container['name'];
}
/**
* Sets name
*
* @param string $name name
*
* @return $this
*/
public function setName($name)
{
$this->container['name'] = $name;
return $this;
}
/**
* Gets createTime
*
* @return string
*/
public function getCreateTime()
{
return $this->container['createTime'];
}
/**
* Sets createTime
*
* @param string $createTime createTime
*
* @return $this
*/
public function setCreateTime($createTime)
{
$this->container['createTime'] = $createTime;
return $this;
}
/**
* Gets address
*
* @return string
*/
public function getAddress()
{
return $this->container['address'];
}
/**
* Sets address
*
* @param string $address address
*
* @return $this
*/
public function setAddress($address)
{
$this->container['address'] = $address;
return $this;
}
/**
* Gets linkman
*
* @return string
*/
public function getLinkman()
{
return $this->container['linkman'];
}
/**
* Sets linkman
*
* @param string $linkman linkman
*
* @return $this
*/
public function setLinkman($linkman)
{
$this->container['linkman'] = $linkman;
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 mobile
*
* @return string
*/
public function getMobile()
{
return $this->container['mobile'];
}
/**
* Sets mobile
*
* @param string $mobile mobile
*
* @return $this
*/
public function setMobile($mobile)
{
$this->container['mobile'] = $mobile;
return $this;
}
/**
* Gets orderCode
*
* @return string
*/
public function getOrderCode()
{
return $this->container['orderCode'];
}
/**
* Sets orderCode
*
* @param string $orderCode orderCode
*
* @return $this
*/
public function setOrderCode($orderCode)
{
$this->container['orderCode'] = $orderCode;
return $this;
}
/**
* Gets status
*
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status
*
* @param string $status status
*
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Gets province
*
* @return string
*/
public function getProvince()
{
return $this->container['province'];
}
/**
* Sets province
*
* @param string $province province
*
* @return $this
*/
public function setProvince($province)
{
$this->container['province'] = $province;
return $this;
}
/**
* Gets city
*
* @return string
*/
public function getCity()
{
return $this->container['city'];
}
/**
* Sets city
*
* @param string $city city
*
* @return $this
*/
public function setCity($city)
{
$this->container['city'] = $city;
return $this;
}
/**
* Gets county
*
* @return string
*/
public function getCounty()
{
return $this->container['county'];
}
/**
* Sets county
*
* @param string $county county
*
* @return $this
*/
public function setCounty($county)
{
$this->container['county'] = $county;
return $this;
}
/**
* Gets bindphone
*
* @return string
*/
public function getBindphone()
{
return $this->container['bindphone'];
}
/**
* Sets bindphone
*
* @param string $bindphone bindphone
*
* @return $this
*/
public function setBindphone($bindphone)
{
$this->container['bindphone'] = $bindphone;
return $this;
}
/**
* Gets isupdate
*
* @return bool
*/
public function getIsupdate()
{
return $this->container['isupdate'];
}
/**
* Sets isupdate
*
* @param bool $isupdate isupdate
*
* @return $this
*/
public function setIsupdate($isupdate)
{
$this->container['isupdate'] = $isupdate;
return $this;
}
/**
* Gets isNew
*
* @return bool
*/
public function getIsNew()
{
return $this->container['isNew'];
}
/**
* Sets isNew
*
* @param bool $isNew isNew
*
* @return $this
*/
public function setIsNew($isNew)
{
$this->container['isNew'] = $isNew;
return $this;
}
/**
* Gets default
*
* @return bool
*/
public function getDefault()
{
return $this->container['default'];
}
/**
* Sets default
*
* @param bool $default default
*
* @return $this
*/
public function setDefault($default)
{
$this->container['default'] = $default;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
* @param integer $offset Offset
*
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
*
* @param integer $offset Offset
*
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
*
* @param integer $offset Offset
* @param mixed $value Value to be set
*
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
*
* @param integer $offset Offset
*
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
*
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

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

View File

@@ -0,0 +1,80 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Pos\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 InstallPosWithProductRequestMarshaller implements RequestMarshaller
{
/**
* @var InstallPosWithProductRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new InstallPosWithProductRequestMarshaller();
}
/**
* @return InstallPosWithProductRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Pos';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/pos/install-pos-with-product';
/**
* @var string
*/
private $contentType = 'application/json';
/**
* @param InstallPosWithProductRequest $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;
}
}
InstallPosWithProductRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,67 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Pos\Model;
class UnSynBindPosRequest extends \Yeepay\Yop\Sdk\Model\BaseRequest
{
/**
* @var string
*/
private $customerNumber;
/**
* @var string
*/
private $poscati;
/**
* Gets customerNumber
*
* @return string
*/
public function getCustomerNumber()
{
return $this->customerNumber;
}
/**
* Sets customerNumber
*
* @param string $customerNumber
* @return UnSynBindPosRequest
*/
public function setCustomerNumber($customerNumber)
{
$this->customerNumber = $customerNumber;
return $this;
}
/**
* Gets poscati
*
* @return string
*/
public function getPoscati()
{
return $this->poscati;
}
/**
* Sets poscati
*
* @param string $poscati
* @return UnSynBindPosRequest
*/
public function setPoscati($poscati)
{
$this->poscati = $poscati;
return $this;
}
public static function getOperationId()
{
return 'unSynBindPos';
}
}

View File

@@ -0,0 +1,83 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Pos\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 UnSynBindPosRequestMarshaller implements RequestMarshaller
{
/**
* @var UnSynBindPosRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new UnSynBindPosRequestMarshaller();
}
/**
* @return UnSynBindPosRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Pos';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/pos/un-syn-bind-pos';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param UnSynBindPosRequest $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->getCustomerNumber() != null){
$internalRequest->addParameter('customer_number', ObjectSerializer::sanitizeForSerialization($request->getCustomerNumber(), 'string'));
}
if($request->getPoscati() != null){
$internalRequest->addParameter('poscati', ObjectSerializer::sanitizeForSerialization($request->getPoscati(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
UnSynBindPosRequestMarshaller::__init();

View File

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

View File

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

View File

@@ -0,0 +1,74 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Pos;
use Yeepay\Yop\Sdk\Client\ClientExecutionParams;
use Yeepay\Yop\Sdk\Client\ClientHandler;
use Yeepay\Yop\Sdk\Client\ClientParams;
use Yeepay\Yop\Sdk\Exception\YopClientException;
use Yeepay\Yop\Sdk\Service\Pos\Model as Model;
class PosClient
{
/**
* @var ClientHandler
*/
private $clientHandler;
/**
* PosClient constructor.
* @param ClientParams $clientParams
*/
function __construct(ClientParams $clientParams)
{
$this->clientHandler = new ClientHandler($clientParams);
}
/**
* @param Model\GetPosInfoDtosRequest $request
* @return Model\GetPosInfoDtosResponse
* @throws YopClientException
*/
public function getPosInfoDtos(Model\GetPosInfoDtosRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request, Model\GetPosInfoDtosRequestMarshaller::getInstance(),
Model\GetPosInfoDtosResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\InstallPosWithProductRequest $request
* @return Model\InstallPosWithProductResponse
* @throws YopClientException
*/
public function installPosWithProduct(Model\InstallPosWithProductRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
if ($request->getBody() == null) {
throw new YopClientException("request.body is required.");
}
$clientExecutionParams = new ClientExecutionParams($request, Model\InstallPosWithProductRequestMarshaller::getInstance(),
Model\InstallPosWithProductResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\UnSynBindPosRequest $request
* @return Model\UnSynBindPosResponse
* @throws YopClientException
*/
public function unSynBindPos(Model\UnSynBindPosRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request, Model\UnSynBindPosRequestMarshaller::getInstance(),
Model\UnSynBindPosResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
}

View File

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