<?php
namespace Com\Pdd\Pop\Sdk\Api\Request;
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
class PddTrainCreateReserveRequest extends PopBaseHttpRequest
{
public function __construct()
{
}
private $pddOrderId;
private $departStation;
private $arriveStation;
private $trainDate;
private $trainNo;
private $departTime;
private $arriveTime;
private $noSeat;
private $chooseSeat;
private $crhAccount;
private $crhPassword;
private $switchAccount;
/**
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainCreateReserveRequest_PassengerInfosItem>, "passenger_infos")
*/
private $passengerInfos;
protected function setUserParams(&$params)
{
$this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
$this->setUserParam($params, "depart_station", $this->departStation);
$this->setUserParam($params, "arrive_station", $this->arriveStation);
$this->setUserParam($params, "train_date", $this->trainDate);
$this->setUserParam($params, "train_no", $this->trainNo);
$this->setUserParam($params, "depart_time", $this->departTime);
$this->setUserParam($params, "arrive_time", $this->arriveTime);
$this->setUserParam($params, "no_seat", $this->noSeat);
$this->setUserParam($params, "choose_seat", $this->chooseSeat);
$this->setUserParam($params, "crh_account", $this->crhAccount);
$this->setUserParam($params, "crh_password", $this->crhPassword);
$this->setUserParam($params, "switch_account", $this->switchAccount);
$this->setUserParam($params, "passenger_infos", $this->passengerInfos);
}
public function getVersion()
{
return "V1";
}
public function getDataType()
{
return "JSON";
}
public function getType()
{
return "pdd.train.create.reserve";
}
public function setPddOrderId($pddOrderId)
{
$this->pddOrderId = $pddOrderId;
}
public function setDepartStation($departStation)
{
$this->departStation = $departStation;
}
public function setArriveStation($arriveStation)
{
$this->arriveStation = $arriveStation;
}
public function setTrainDate($trainDate)
{
$this->trainDate = $trainDate;
}
public function setTrainNo($trainNo)
{
$this->trainNo = $trainNo;
}
public function setDepartTime($departTime)
{
$this->departTime = $departTime;
}
public function setArriveTime($arriveTime)
{
$this->arriveTime = $arriveTime;
}
public function setNoSeat($noSeat)
{
$this->noSeat = $noSeat;
}
public function setChooseSeat($chooseSeat)
{
$this->chooseSeat = $chooseSeat;
}
public function setCrhAccount($crhAccount)
{
$this->crhAccount = $crhAccount;
}
public function setCrhPassword($crhPassword)
{
$this->crhPassword = $crhPassword;
}
public function setSwitchAccount($switchAccount)
{
$this->switchAccount = $switchAccount;
}
public function setPassengerInfos($passengerInfos)
{
$this->passengerInfos = $passengerInfos;
}
}
class PddTrainCreateReserveRequest_PassengerInfosItem extends PopBaseJsonEntity
{
public function __construct()
{
}
private $cardType;
private $cardNo;
private $name;
private $ticketType;
private $seatType;
private $ticketPrice;
private $subPddOrderId;
private $birthday;
private $effectiveDate;
private $sex;
private $country;
private $mobile;
private $email;
public function setCardType($cardType)
{
$this->cardType = $cardType;
}
public function setCardNo($cardNo)
{
$this->cardNo = $cardNo;
}
public function setName($name)
{
$this->name = $name;
}
public function setTicketType($ticketType)
{
$this->ticketType = $ticketType;
}
public function setSeatType($seatType)
{
$this->seatType = $seatType;
}
public function setTicketPrice($ticketPrice)
{
$this->ticketPrice = $ticketPrice;
}
public function setSubPddOrderId($subPddOrderId)
{
$this->subPddOrderId = $subPddOrderId;
}
public function setBirthday($birthday)
{
$this->birthday = $birthday;
}
public function setEffectiveDate($effectiveDate)
{
$this->effectiveDate = $effectiveDate;
}
public function setSex($sex)
{
$this->sex = $sex;
}
public function setCountry($country)
{
$this->country = $country;
}
public function setMobile($mobile)
{
$this->mobile = $mobile;
}
public function setEmail($email)
{
$this->email = $email;
}
}