PddTicketSkuRuleEditRequest.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675
  1. <?php
  2. namespace Com\Pdd\Pop\Sdk\Api\Request;
  3. use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
  4. use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
  5. class PddTicketSkuRuleEditRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_BookerInfoLimitation, "booker_info_limitation")
  12. */
  13. private $bookerInfoLimitation;
  14. /**
  15. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_BookingNotice, "booking_notice")
  16. */
  17. private $bookingNotice;
  18. /**
  19. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_OrderLimitation, "order_limitation")
  20. */
  21. private $orderLimitation;
  22. /**
  23. * @JsonProperty(String, "out_rule_id")
  24. */
  25. private $outRuleId;
  26. /**
  27. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_ProviderContactInfo, "provider_contact_info")
  28. */
  29. private $providerContactInfo;
  30. /**
  31. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_RefundLimitations, "refund_limitations")
  32. */
  33. private $refundLimitations;
  34. /**
  35. * @JsonProperty(String, "rule_id")
  36. */
  37. private $ruleId;
  38. /**
  39. * @JsonProperty(String, "rule_name")
  40. */
  41. private $ruleName;
  42. /**
  43. * @JsonProperty(String, "rule_version")
  44. */
  45. private $ruleVersion;
  46. /**
  47. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_TravelerInfoLimitation, "traveler_info_limitation")
  48. */
  49. private $travelerInfoLimitation;
  50. /**
  51. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_ValidLimitation, "valid_limitation")
  52. */
  53. private $validLimitation;
  54. protected function setUserParams(&$params)
  55. {
  56. $this->setUserParam($params, "booker_info_limitation", $this->bookerInfoLimitation);
  57. $this->setUserParam($params, "booking_notice", $this->bookingNotice);
  58. $this->setUserParam($params, "order_limitation", $this->orderLimitation);
  59. $this->setUserParam($params, "out_rule_id", $this->outRuleId);
  60. $this->setUserParam($params, "provider_contact_info", $this->providerContactInfo);
  61. $this->setUserParam($params, "refund_limitations", $this->refundLimitations);
  62. $this->setUserParam($params, "rule_id", $this->ruleId);
  63. $this->setUserParam($params, "rule_name", $this->ruleName);
  64. $this->setUserParam($params, "rule_version", $this->ruleVersion);
  65. $this->setUserParam($params, "traveler_info_limitation", $this->travelerInfoLimitation);
  66. $this->setUserParam($params, "valid_limitation", $this->validLimitation);
  67. }
  68. public function getVersion()
  69. {
  70. return "V1";
  71. }
  72. public function getDataType()
  73. {
  74. return "JSON";
  75. }
  76. public function getType()
  77. {
  78. return "pdd.ticket.sku.rule.edit";
  79. }
  80. public function setBookerInfoLimitation($bookerInfoLimitation)
  81. {
  82. $this->bookerInfoLimitation = $bookerInfoLimitation;
  83. }
  84. public function setBookingNotice($bookingNotice)
  85. {
  86. $this->bookingNotice = $bookingNotice;
  87. }
  88. public function setOrderLimitation($orderLimitation)
  89. {
  90. $this->orderLimitation = $orderLimitation;
  91. }
  92. public function setOutRuleId($outRuleId)
  93. {
  94. $this->outRuleId = $outRuleId;
  95. }
  96. public function setProviderContactInfo($providerContactInfo)
  97. {
  98. $this->providerContactInfo = $providerContactInfo;
  99. }
  100. public function setRefundLimitations($refundLimitations)
  101. {
  102. $this->refundLimitations = $refundLimitations;
  103. }
  104. public function setRuleId($ruleId)
  105. {
  106. $this->ruleId = $ruleId;
  107. }
  108. public function setRuleName($ruleName)
  109. {
  110. $this->ruleName = $ruleName;
  111. }
  112. public function setRuleVersion($ruleVersion)
  113. {
  114. $this->ruleVersion = $ruleVersion;
  115. }
  116. public function setTravelerInfoLimitation($travelerInfoLimitation)
  117. {
  118. $this->travelerInfoLimitation = $travelerInfoLimitation;
  119. }
  120. public function setValidLimitation($validLimitation)
  121. {
  122. $this->validLimitation = $validLimitation;
  123. }
  124. }
  125. class PddTicketSkuRuleEditRequest_BookerInfoLimitation extends PopBaseJsonEntity
  126. {
  127. public function __construct()
  128. {
  129. }
  130. /**
  131. * @JsonProperty(Integer, "booker_required")
  132. */
  133. private $bookerRequired;
  134. /**
  135. * @JsonProperty(Integer, "mobile")
  136. */
  137. private $mobile;
  138. public function setBookerRequired($bookerRequired)
  139. {
  140. $this->bookerRequired = $bookerRequired;
  141. }
  142. public function setMobile($mobile)
  143. {
  144. $this->mobile = $mobile;
  145. }
  146. }
  147. class PddTicketSkuRuleEditRequest_BookingNotice extends PopBaseJsonEntity
  148. {
  149. public function __construct()
  150. {
  151. }
  152. /**
  153. * @JsonProperty(String, "enter_address")
  154. */
  155. private $enterAddress;
  156. /**
  157. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_BookingNoticeEnterTimeItem>, "enter_time")
  158. */
  159. private $enterTime;
  160. /**
  161. * @JsonProperty(String, "enter_ways")
  162. */
  163. private $enterWays;
  164. /**
  165. * @JsonProperty(String, "extra_desc")
  166. */
  167. private $extraDesc;
  168. /**
  169. * @JsonProperty(String, "fee_include")
  170. */
  171. private $feeInclude;
  172. /**
  173. * @JsonProperty(String, "fee_not_include")
  174. */
  175. private $feeNotInclude;
  176. /**
  177. * @JsonProperty(String, "important_notice")
  178. */
  179. private $importantNotice;
  180. /**
  181. * @JsonProperty(Integer, "pass_time_limit")
  182. */
  183. private $passTimeLimit;
  184. /**
  185. * @JsonProperty(String, "ticket_place")
  186. */
  187. private $ticketPlace;
  188. /**
  189. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_BookingNoticeTicketTimeItem>, "ticket_time")
  190. */
  191. private $ticketTime;
  192. public function setEnterAddress($enterAddress)
  193. {
  194. $this->enterAddress = $enterAddress;
  195. }
  196. public function setEnterTime($enterTime)
  197. {
  198. $this->enterTime = $enterTime;
  199. }
  200. public function setEnterWays($enterWays)
  201. {
  202. $this->enterWays = $enterWays;
  203. }
  204. public function setExtraDesc($extraDesc)
  205. {
  206. $this->extraDesc = $extraDesc;
  207. }
  208. public function setFeeInclude($feeInclude)
  209. {
  210. $this->feeInclude = $feeInclude;
  211. }
  212. public function setFeeNotInclude($feeNotInclude)
  213. {
  214. $this->feeNotInclude = $feeNotInclude;
  215. }
  216. public function setImportantNotice($importantNotice)
  217. {
  218. $this->importantNotice = $importantNotice;
  219. }
  220. public function setPassTimeLimit($passTimeLimit)
  221. {
  222. $this->passTimeLimit = $passTimeLimit;
  223. }
  224. public function setTicketPlace($ticketPlace)
  225. {
  226. $this->ticketPlace = $ticketPlace;
  227. }
  228. public function setTicketTime($ticketTime)
  229. {
  230. $this->ticketTime = $ticketTime;
  231. }
  232. }
  233. class PddTicketSkuRuleEditRequest_BookingNoticeEnterTimeItem extends PopBaseJsonEntity
  234. {
  235. public function __construct()
  236. {
  237. }
  238. /**
  239. * @JsonProperty(String, "comment")
  240. */
  241. private $comment;
  242. /**
  243. * @JsonProperty(String, "end_at")
  244. */
  245. private $endAt;
  246. /**
  247. * @JsonProperty(String, "start_at")
  248. */
  249. private $startAt;
  250. public function setComment($comment)
  251. {
  252. $this->comment = $comment;
  253. }
  254. public function setEndAt($endAt)
  255. {
  256. $this->endAt = $endAt;
  257. }
  258. public function setStartAt($startAt)
  259. {
  260. $this->startAt = $startAt;
  261. }
  262. }
  263. class PddTicketSkuRuleEditRequest_BookingNoticeTicketTimeItem extends PopBaseJsonEntity
  264. {
  265. public function __construct()
  266. {
  267. }
  268. /**
  269. * @JsonProperty(String, "comment")
  270. */
  271. private $comment;
  272. /**
  273. * @JsonProperty(String, "end_at")
  274. */
  275. private $endAt;
  276. /**
  277. * @JsonProperty(String, "start_at")
  278. */
  279. private $startAt;
  280. public function setComment($comment)
  281. {
  282. $this->comment = $comment;
  283. }
  284. public function setEndAt($endAt)
  285. {
  286. $this->endAt = $endAt;
  287. }
  288. public function setStartAt($startAt)
  289. {
  290. $this->startAt = $startAt;
  291. }
  292. }
  293. class PddTicketSkuRuleEditRequest_OrderLimitation extends PopBaseJsonEntity
  294. {
  295. public function __construct()
  296. {
  297. }
  298. /**
  299. * @JsonProperty(Integer, "cycle_length")
  300. */
  301. private $cycleLength;
  302. /**
  303. * @JsonProperty(Integer, "limitation_type")
  304. */
  305. private $limitationType;
  306. /**
  307. * @JsonProperty(Integer, "limit_cycle")
  308. */
  309. private $limitCycle;
  310. /**
  311. * @JsonProperty(Integer, "limit_num")
  312. */
  313. private $limitNum;
  314. public function setCycleLength($cycleLength)
  315. {
  316. $this->cycleLength = $cycleLength;
  317. }
  318. public function setLimitationType($limitationType)
  319. {
  320. $this->limitationType = $limitationType;
  321. }
  322. public function setLimitCycle($limitCycle)
  323. {
  324. $this->limitCycle = $limitCycle;
  325. }
  326. public function setLimitNum($limitNum)
  327. {
  328. $this->limitNum = $limitNum;
  329. }
  330. }
  331. class PddTicketSkuRuleEditRequest_ProviderContactInfo extends PopBaseJsonEntity
  332. {
  333. public function __construct()
  334. {
  335. }
  336. /**
  337. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_ProviderContactInfoProviderBusinessHourItem>, "provider_business_hour")
  338. */
  339. private $providerBusinessHour;
  340. /**
  341. * @JsonProperty(String, "provider_name")
  342. */
  343. private $providerName;
  344. /**
  345. * @JsonProperty(String, "provider_telephone")
  346. */
  347. private $providerTelephone;
  348. public function setProviderBusinessHour($providerBusinessHour)
  349. {
  350. $this->providerBusinessHour = $providerBusinessHour;
  351. }
  352. public function setProviderName($providerName)
  353. {
  354. $this->providerName = $providerName;
  355. }
  356. public function setProviderTelephone($providerTelephone)
  357. {
  358. $this->providerTelephone = $providerTelephone;
  359. }
  360. }
  361. class PddTicketSkuRuleEditRequest_ProviderContactInfoProviderBusinessHourItem extends PopBaseJsonEntity
  362. {
  363. public function __construct()
  364. {
  365. }
  366. /**
  367. * @JsonProperty(String, "close_at")
  368. */
  369. private $closeAt;
  370. /**
  371. * @JsonProperty(String, "open_at")
  372. */
  373. private $openAt;
  374. /**
  375. * @JsonProperty(String, "time_info")
  376. */
  377. private $timeInfo;
  378. public function setCloseAt($closeAt)
  379. {
  380. $this->closeAt = $closeAt;
  381. }
  382. public function setOpenAt($openAt)
  383. {
  384. $this->openAt = $openAt;
  385. }
  386. public function setTimeInfo($timeInfo)
  387. {
  388. $this->timeInfo = $timeInfo;
  389. }
  390. }
  391. class PddTicketSkuRuleEditRequest_RefundLimitations extends PopBaseJsonEntity
  392. {
  393. public function __construct()
  394. {
  395. }
  396. /**
  397. * @JsonProperty(Integer, "is_refundable")
  398. */
  399. private $isRefundable;
  400. /**
  401. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_RefundLimitationsRefundRulesItem>, "refund_rules")
  402. */
  403. private $refundRules;
  404. public function setIsRefundable($isRefundable)
  405. {
  406. $this->isRefundable = $isRefundable;
  407. }
  408. public function setRefundRules($refundRules)
  409. {
  410. $this->refundRules = $refundRules;
  411. }
  412. }
  413. class PddTicketSkuRuleEditRequest_RefundLimitationsRefundRulesItem extends PopBaseJsonEntity
  414. {
  415. public function __construct()
  416. {
  417. }
  418. /**
  419. * @JsonProperty(Integer, "ahead_time")
  420. */
  421. private $aheadTime;
  422. /**
  423. * @JsonProperty(Integer, "deduction_fee")
  424. */
  425. private $deductionFee;
  426. /**
  427. * @JsonProperty(Integer, "deduction_unit")
  428. */
  429. private $deductionUnit;
  430. /**
  431. * @JsonProperty(Integer, "type")
  432. */
  433. private $type;
  434. public function setAheadTime($aheadTime)
  435. {
  436. $this->aheadTime = $aheadTime;
  437. }
  438. public function setDeductionFee($deductionFee)
  439. {
  440. $this->deductionFee = $deductionFee;
  441. }
  442. public function setDeductionUnit($deductionUnit)
  443. {
  444. $this->deductionUnit = $deductionUnit;
  445. }
  446. public function setType($type)
  447. {
  448. $this->type = $type;
  449. }
  450. }
  451. class PddTicketSkuRuleEditRequest_TravelerInfoLimitation extends PopBaseJsonEntity
  452. {
  453. public function __construct()
  454. {
  455. }
  456. /**
  457. * @JsonProperty(Integer, "credential")
  458. */
  459. private $credential;
  460. /**
  461. * @JsonProperty(Integer, "name")
  462. */
  463. private $name;
  464. /**
  465. * @JsonProperty(Integer, "traveler_required")
  466. */
  467. private $travelerRequired;
  468. public function setCredential($credential)
  469. {
  470. $this->credential = $credential;
  471. }
  472. public function setName($name)
  473. {
  474. $this->name = $name;
  475. }
  476. public function setTravelerRequired($travelerRequired)
  477. {
  478. $this->travelerRequired = $travelerRequired;
  479. }
  480. }
  481. class PddTicketSkuRuleEditRequest_ValidLimitation extends PopBaseJsonEntity
  482. {
  483. public function __construct()
  484. {
  485. }
  486. /**
  487. * @JsonProperty(Integer, "days_time")
  488. */
  489. private $daysTime;
  490. /**
  491. * @JsonProperty(Long, "end_time")
  492. */
  493. private $endTime;
  494. /**
  495. * @JsonProperty(Long, "start_time")
  496. */
  497. private $startTime;
  498. /**
  499. * @JsonProperty(Integer, "time_type")
  500. */
  501. private $timeType;
  502. public function setDaysTime($daysTime)
  503. {
  504. $this->daysTime = $daysTime;
  505. }
  506. public function setEndTime($endTime)
  507. {
  508. $this->endTime = $endTime;
  509. }
  510. public function setStartTime($startTime)
  511. {
  512. $this->startTime = $startTime;
  513. }
  514. public function setTimeType($timeType)
  515. {
  516. $this->timeType = $timeType;
  517. }
  518. }