, "depart_dates") */ private $departDates; /** * @JsonProperty(String, "have_account") */ private $haveAccount; /** * @JsonProperty(String, "crh_account") */ private $crhAccount; /** * @JsonProperty(String, "crh_password") */ private $crhPassword; /** * @JsonProperty(String, "sum_ticket_price") */ private $sumTicketPrice; /** * @JsonProperty(List, "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() { } /** * @JsonProperty(String, "train_no") */ private $trainNo; /** * @JsonProperty(String, "depart_station") */ private $departStation; /** * @JsonProperty(String, "arrive_station") */ 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() { } /** * @JsonProperty(String, "name") */ private $name; /** * @JsonProperty(String, "card_no") */ private $cardNo; /** * @JsonProperty(String, "card_type") */ private $cardType; /** * @JsonProperty(Integer, "ticket_type") */ private $ticketType; /** * @JsonProperty(String, "sub_pdd_order_id") */ private $subPddOrderId; /** * @JsonProperty(String, "effective_date") */ private $effectiveDate; /** * @JsonProperty(String, "sex") */ private $sex; /** * @JsonProperty(String, "country") */ private $country; /** * @JsonProperty(String, "birthday") */ private $birthday; /** * @JsonProperty(String, "order_sn") */ private $orderSn; /** * @JsonProperty(String, "mobile") */ private $mobile; /** * @JsonProperty(String, "email") */ 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; } }