<?php
namespace Com\Pdd\Pop\Sdk\Api\Request;
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
class PddTrainGrabCreateRequest extends PopBaseHttpRequest
{
public function __construct()
{
}
private $pddOrderId;
private $endTime;
/**
* @JsonProperty(List<String>, "depart_dates")
*/
private $departDates;
private $haveAccount;
private $crhAccount;
private $crhPassword;
private $sumTicketPrice;
/**
* @JsonProperty(List<Integer>, "seat_types")
*/
private $seatTypes;
/**
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainGrabCreateRequest_TravelInfosItem>, "travel_infos")
*/
private $travelInfos;
/**
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainGrabCreateRequest_PassengerInfosItem>, "passenger_infos")
*/
private $passengerInfos;
protected function setUserParams(&$params)
{
$this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
$this->setUserParam($params, "end_time", $this->endTime);
$this->setUserParam($params, "depart_dates", $this->departDates);
$this->setUserParam($params, "have_account", $this->haveAccount);
$this->setUserParam($params, "crh_account", $this->crhAccount);
$this->setUserParam($params, "crh_password", $this->crhPassword);
$this->setUserParam($params, "sum_ticket_price", $this->sumTicketPrice);
$this->setUserParam($params, "seat_types", $this->seatTypes);
$this->setUserParam($params, "travel_infos", $this->travelInfos);
$this->setUserParam($params, "passenger_infos", $this->passengerInfos);
}
public function getVersion()
{
return "V1";
}
public function getDataType()
{
return "JSON";
}
public function getType()
{
return "pdd.train.grab.create";
}
public function setPddOrderId($pddOrderId)
{
$this->pddOrderId = $pddOrderId;
}
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
public function setDepartDates($departDates)
{
$this->departDates = $departDates;
}
public function setHaveAccount($haveAccount)
{
$this->haveAccount = $haveAccount;
}
public function setCrhAccount($crhAccount)
{
$this->crhAccount = $crhAccount;
}
public function setCrhPassword($crhPassword)
{
$this->crhPassword = $crhPassword;
}
public function setSumTicketPrice($sumTicketPrice)
{
$this->sumTicketPrice = $sumTicketPrice;
}
public function setSeatTypes($seatTypes)
{
$this->seatTypes = $seatTypes;
}
public function setTravelInfos($travelInfos)
{
$this->travelInfos = $travelInfos;
}
public function setPassengerInfos($passengerInfos)
{
$this->passengerInfos = $passengerInfos;
}
}
class PddTrainGrabCreateRequest_TravelInfosItem extends PopBaseJsonEntity
{
public function __construct()
{
}
private $trainNo;
private $departStation;
private $arriveStation;
public function setTrainNo($trainNo)
{
$this->trainNo = $trainNo;
}
public function setDepartStation($departStation)
{
$this->departStation = $departStation;
}
public function setArriveStation($arriveStation)
{
$this->arriveStation = $arriveStation;
}
}
class PddTrainGrabCreateRequest_PassengerInfosItem extends PopBaseJsonEntity
{
public function __construct()
{
}
private $name;
private $cardNo;
private $cardType;
private $ticketType;
private $subPddOrderId;
private $effectiveDate;
private $sex;
private $country;
private $birthday;
private $orderSn;
private $mobile;
private $email;
public function setName($name)
{
$this->name = $name;
}
public function setCardNo($cardNo)
{
$this->cardNo = $cardNo;
}
public function setCardType($cardType)
{
$this->cardType = $cardType;
}
public function setTicketType($ticketType)
{
$this->ticketType = $ticketType;
}
public function setSubPddOrderId($subPddOrderId)
{
$this->subPddOrderId = $subPddOrderId;
}
public function setEffectiveDate($effectiveDate)
{
$this->effectiveDate = $effectiveDate;
}
public function setSex($sex)
{
$this->sex = $sex;
}
public function setCountry($country)
{
$this->country = $country;
}
public function setBirthday($birthday)
{
$this->birthday = $birthday;
}
public function setOrderSn($orderSn)
{
$this->orderSn = $orderSn;
}
public function setMobile($mobile)
{
$this->mobile = $mobile;
}
public function setEmail($email)
{
$this->email = $email;
}
}