PddTicketSkuRuleAddRequest.php 11 KB

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