165 lines
5.0 KiB
PHP
165 lines
5.0 KiB
PHP
<?php
|
||
/*
|
||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||
*
|
||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
* you may not use this file except in compliance with the License.
|
||
* You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
* See the License for the specific language governing permissions and
|
||
* limitations under the License.
|
||
*/
|
||
|
||
namespace TencentCloud\Ocr\V20181119\Models;
|
||
|
||
use TencentCloud\Common\AbstractModel;
|
||
|
||
/**
|
||
* @method string getTicketNum() 获取编号
|
||
* @method void setTicketNum(string $TicketNum) 设置编号
|
||
* @method string getStartStation() 获取出发站
|
||
* @method void setStartStation(string $StartStation) 设置出发站
|
||
* @method string getDestinationStation() 获取到达站
|
||
* @method void setDestinationStation(string $DestinationStation) 设置到达站
|
||
* @method string getDate() 获取出发时间
|
||
* @method void setDate(string $Date) 设置出发时间
|
||
* @method string getTrainNum() 获取车次
|
||
* @method void setTrainNum(string $TrainNum) 设置车次
|
||
* @method string getSeat() 获取座位号
|
||
* @method void setSeat(string $Seat) 设置座位号
|
||
* @method string getName() 获取姓名
|
||
* @method void setName(string $Name) 设置姓名
|
||
* @method string getPrice() 获取票价
|
||
* @method void setPrice(string $Price) 设置票价
|
||
* @method string getSeatCategory() 获取席别
|
||
* @method void setSeatCategory(string $SeatCategory) 设置席别
|
||
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||
*/
|
||
|
||
/**
|
||
*TrainTicketOCR返回参数结构体
|
||
*/
|
||
class TrainTicketOCRResponse extends AbstractModel
|
||
{
|
||
/**
|
||
* @var string 编号
|
||
*/
|
||
public $TicketNum;
|
||
|
||
/**
|
||
* @var string 出发站
|
||
*/
|
||
public $StartStation;
|
||
|
||
/**
|
||
* @var string 到达站
|
||
*/
|
||
public $DestinationStation;
|
||
|
||
/**
|
||
* @var string 出发时间
|
||
*/
|
||
public $Date;
|
||
|
||
/**
|
||
* @var string 车次
|
||
*/
|
||
public $TrainNum;
|
||
|
||
/**
|
||
* @var string 座位号
|
||
*/
|
||
public $Seat;
|
||
|
||
/**
|
||
* @var string 姓名
|
||
*/
|
||
public $Name;
|
||
|
||
/**
|
||
* @var string 票价
|
||
*/
|
||
public $Price;
|
||
|
||
/**
|
||
* @var string 席别
|
||
*/
|
||
public $SeatCategory;
|
||
|
||
/**
|
||
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||
*/
|
||
public $RequestId;
|
||
|
||
/**
|
||
* @param string $TicketNum 编号
|
||
* @param string $StartStation 出发站
|
||
* @param string $DestinationStation 到达站
|
||
* @param string $Date 出发时间
|
||
* @param string $TrainNum 车次
|
||
* @param string $Seat 座位号
|
||
* @param string $Name 姓名
|
||
* @param string $Price 票价
|
||
* @param string $SeatCategory 席别
|
||
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||
*/
|
||
public function __construct()
|
||
{
|
||
}
|
||
|
||
/**
|
||
* 内部实现,用户禁止调用
|
||
*/
|
||
public function deserialize($param)
|
||
{
|
||
if ($param === null) {
|
||
return;
|
||
}
|
||
if (array_key_exists("TicketNum", $param) and $param["TicketNum"] !== null) {
|
||
$this->TicketNum = $param["TicketNum"];
|
||
}
|
||
|
||
if (array_key_exists("StartStation", $param) and $param["StartStation"] !== null) {
|
||
$this->StartStation = $param["StartStation"];
|
||
}
|
||
|
||
if (array_key_exists("DestinationStation", $param) and $param["DestinationStation"] !== null) {
|
||
$this->DestinationStation = $param["DestinationStation"];
|
||
}
|
||
|
||
if (array_key_exists("Date", $param) and $param["Date"] !== null) {
|
||
$this->Date = $param["Date"];
|
||
}
|
||
|
||
if (array_key_exists("TrainNum", $param) and $param["TrainNum"] !== null) {
|
||
$this->TrainNum = $param["TrainNum"];
|
||
}
|
||
|
||
if (array_key_exists("Seat", $param) and $param["Seat"] !== null) {
|
||
$this->Seat = $param["Seat"];
|
||
}
|
||
|
||
if (array_key_exists("Name", $param) and $param["Name"] !== null) {
|
||
$this->Name = $param["Name"];
|
||
}
|
||
|
||
if (array_key_exists("Price", $param) and $param["Price"] !== null) {
|
||
$this->Price = $param["Price"];
|
||
}
|
||
|
||
if (array_key_exists("SeatCategory", $param) and $param["SeatCategory"] !== null) {
|
||
$this->SeatCategory = $param["SeatCategory"];
|
||
}
|
||
|
||
if (array_key_exists("RequestId", $param) and $param["RequestId"] !== null) {
|
||
$this->RequestId = $param["RequestId"];
|
||
}
|
||
}
|
||
}
|