增加聚合支付托管下单
This commit is contained in:
453
lib/Service/TravelResources/Model/QueryKfcPlaceOrderBean.php
Normal file
453
lib/Service/TravelResources/Model/QueryKfcPlaceOrderBean.php
Normal file
@@ -0,0 +1,453 @@
|
||||
<?php
|
||||
/**
|
||||
* QueryKfcPlaceOrderBean
|
||||
*
|
||||
* PHP version 5
|
||||
*
|
||||
* @category Class
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
|
||||
/**
|
||||
* 旅游资源
|
||||
*
|
||||
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
||||
*
|
||||
* 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\TravelResources\Model;
|
||||
|
||||
use \ArrayAccess;
|
||||
use Yeepay\Yop\Sdk\Model\ModelInterface;
|
||||
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
|
||||
|
||||
/**
|
||||
* QueryKfcPlaceOrderBean Class Doc Comment
|
||||
*
|
||||
* @category Class
|
||||
* @description kfc广场订单信息
|
||||
* @package Yeepay\Yop\Sdk\
|
||||
* @author Swagger Codegen team
|
||||
* @link https://github.com/swagger-api/swagger-codegen
|
||||
*/
|
||||
class QueryKfcPlaceOrderBean implements ModelInterface, ArrayAccess
|
||||
{
|
||||
const DISCRIMINATOR = null;
|
||||
|
||||
/**
|
||||
* The original name of the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $swaggerModelName = 'QueryKfcPlaceOrderBean';
|
||||
|
||||
/**
|
||||
* Array of property to type mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerTypes = [
|
||||
'cityName' => 'string',
|
||||
'eatType' => 'int',
|
||||
'storeAddress' => 'string',
|
||||
'storeName' => 'string',
|
||||
'items' => '\Yeepay\Yop\Sdk\Service\TravelResources\Model\QueryKfcItemsBean[]',
|
||||
'storeCode' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of property to format mappings. Used for (de)serialization
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $swaggerFormats = [
|
||||
'cityName' => null,
|
||||
'eatType' => 'int32',
|
||||
'storeAddress' => null,
|
||||
'storeName' => null,
|
||||
'items' => null,
|
||||
'storeCode' => 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 = [
|
||||
'cityName' => 'cityName',
|
||||
'eatType' => 'eatType',
|
||||
'storeAddress' => 'storeAddress',
|
||||
'storeName' => 'storeName',
|
||||
'items' => 'items',
|
||||
'storeCode' => 'storeCode'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to setter functions (for deserialization of responses)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $setters = [
|
||||
'cityName' => 'setCityName',
|
||||
'eatType' => 'setEatType',
|
||||
'storeAddress' => 'setStoreAddress',
|
||||
'storeName' => 'setStoreName',
|
||||
'items' => 'setItems',
|
||||
'storeCode' => 'setStoreCode'
|
||||
];
|
||||
|
||||
/**
|
||||
* Array of attributes to getter functions (for serialization of requests)
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected static $getters = [
|
||||
'cityName' => 'getCityName',
|
||||
'eatType' => 'getEatType',
|
||||
'storeAddress' => 'getStoreAddress',
|
||||
'storeName' => 'getStoreName',
|
||||
'items' => 'getItems',
|
||||
'storeCode' => 'getStoreCode'
|
||||
];
|
||||
|
||||
/**
|
||||
* 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['cityName'] = isset($data['cityName']) ? $data['cityName'] : null;
|
||||
$this->container['eatType'] = isset($data['eatType']) ? $data['eatType'] : null;
|
||||
$this->container['storeAddress'] = isset($data['storeAddress']) ? $data['storeAddress'] : null;
|
||||
$this->container['storeName'] = isset($data['storeName']) ? $data['storeName'] : null;
|
||||
$this->container['items'] = isset($data['items']) ? $data['items'] : null;
|
||||
$this->container['storeCode'] = isset($data['storeCode']) ? $data['storeCode'] : 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 cityName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCityName()
|
||||
{
|
||||
return $this->container['cityName'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets cityName
|
||||
*
|
||||
* @param string $cityName <pre>城市名称</pre>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCityName($cityName)
|
||||
{
|
||||
$this->container['cityName'] = $cityName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets eatType
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getEatType()
|
||||
{
|
||||
return $this->container['eatType'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets eatType
|
||||
*
|
||||
* @param int $eatType <pre>1:堂食 2:外带</pre>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setEatType($eatType)
|
||||
{
|
||||
$this->container['eatType'] = $eatType;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets storeAddress
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getStoreAddress()
|
||||
{
|
||||
return $this->container['storeAddress'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets storeAddress
|
||||
*
|
||||
* @param string $storeAddress <pre>餐厅地址</pre>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStoreAddress($storeAddress)
|
||||
{
|
||||
$this->container['storeAddress'] = $storeAddress;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets storeName
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getStoreName()
|
||||
{
|
||||
return $this->container['storeName'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets storeName
|
||||
*
|
||||
* @param string $storeName <pre>餐厅名称</pre>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStoreName($storeName)
|
||||
{
|
||||
$this->container['storeName'] = $storeName;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets items
|
||||
*
|
||||
* @return \Yeepay\Yop\Sdk\Service\TravelResources\Model\QueryKfcItemsBean[]
|
||||
*/
|
||||
public function getItems()
|
||||
{
|
||||
return $this->container['items'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets items
|
||||
*
|
||||
* @param \Yeepay\Yop\Sdk\Service\TravelResources\Model\QueryKfcItemsBean[] $items <pre>餐品明细</pre>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setItems($items)
|
||||
{
|
||||
$this->container['items'] = $items;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets storeCode
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getStoreCode()
|
||||
{
|
||||
return $this->container['storeCode'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets storeCode
|
||||
*
|
||||
* @param string $storeCode <pre>门店编号</pre>
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setStoreCode($storeCode)
|
||||
{
|
||||
$this->container['storeCode'] = $storeCode;
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user