| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314 |
- <?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()
- {
- }
- /**
- * @JsonProperty(String, "pdd_order_id")
- */
- private $pddOrderId;
- /**
- * @JsonProperty(String, "end_time")
- */
- private $endTime;
- /**
- * @JsonProperty(List<String>, "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<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()
- {
- }
- /**
- * @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;
- }
- }
|