Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 
 

1103 рядки
29 KiB

  1. <?php
  2. /**
  3. * TOP API: taobao.xhotel.rateplan.update request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2017.09.20
  7. */
  8. namespace backend\modules\hotel\models\Ali;
  9. use common\models\commonModel;
  10. class XhotelRateplanUpdateRequest extends commonModel
  11. {
  12. const ERROR_MSG=[
  13. 7=>'接口调用频繁,需要重新操作',
  14. 40=>'RP名称不能为空,请先设置RP名称',
  15. ];
  16. /**
  17. * 价格类型字段:0.非协议价;1.集采协议价;如果不是协议价,请不要填写该字段。该字段有权限控制,如需使用,请联系阿里旅行运营。 如果不填写或者填写为0,默认是阿里旅行价
  18. **/
  19. public $agreement;
  20. /**
  21. * 协议保留房提前x小时自动确认时间 比如设置为6 那么从入住当日24点往前推6小时即18:00以前可以自动确认有房,否则是待确认
  22. **/
  23. public $allotmentReleaseTime;
  24. /**
  25. * base rp标记,1是;0否
  26. **/
  27. public $baseRpFlag;
  28. /**
  29. * 是否底价加价,1是底价加价,0 非底价加价rp
  30. **/
  31. public $bottomPriceFlag;
  32. /**
  33. * 在更新rateplan时,同时新增或更新早餐日历。 date:早餐政策属于具体哪一天 breakfast_count:这一天早餐的数量。>=0,<=99 如果date为空,那么会去读取startDate和endDate(格式都为"yyyy-MM-dd"),即早餐正常属于一个时间段。-1为状态早餐,和最终绑定的几人价有关,如果是一人价那么就是我一份早餐,二人价就是两份早餐。请注意,该字段仅能维护从当前时间开始,10年以内的数据,如果超过10年,会报错。
  34. **/
  35. public $breakfast_cal;
  36. /**
  37. * -1,状态早餐,和入住人数有关系,几人价就是几份早餐;0:不含早1:含单早2:含双早N:含N早(1-99可选);(添加RP时为必须)
  38. **/
  39. public $breakfast_count;
  40. /**
  41. * 最早可选入住时间,小时房特有字段。格式为HH:mm
  42. **/
  43. public $canCheckinEnd;
  44. /**
  45. * 最晚可选入住时间,小时房特有字段。格式为HH:mm
  46. **/
  47. public $canCheckinStart;
  48. /**
  49. * 不推荐使用,见退改规则
  50. **/
  51. public $cancelBeforeDay;
  52. /**
  53. * 不推荐使用,见退改规则
  54. **/
  55. public $cancelBeforeHour;
  56. /**
  57. * 退订政策字段,是个json串,参考示例值设置改字段的值。允许变更/取消:在XX年XX月XX日XX时前取消收取Y%的手续费,100>Y>=0允许变更/取消:在入住前X小时前取消收取Y%的手续费,100>Y>=0(不超过10条)。1.表示任意退{"cancelPolicyType":1};2.表示不能退{"cancelPolicyType":2};4.从入住当天24点往前推X小时前取消收取Y%手续费,否则不可取消{"cancelPolicyType":4,"policyInfo":{"48":10,"24":20}}表示,从入住日24点往前推提前至少48小时取消,收取10%的手续费,从入住日24点往前推提前至少24小时取消,收取20%的手续费;5.从24点往前推多少小时可退{"cancelPolicyType":5,"policyInfo":{"timeBefore":6}}表示从入住日24点往前推至少6个小时即入住日18点前可免费取消;6.从入住日24点往前推,至少提前小时数扣取首晚房费{"cancelPolicyType":6,"policyInfo":{"14":1}}表示入住日24点往前推14小时,即入住日10点前取消收取首晚房费。 注意:支付类型为预付,那么可以使用所有的退订类型,但是必须是非担保;支付类型为面付或者信任住并且是无担保,那么只能使用1类型的退订;支付类型为面付或者信任住并且为担保,那么只能使用2,5类型的退订;支付类型为在线预约,那么只能使用1,2,5类型的退改。如果支付类型是面付或者信任住并且为担保,那么如果传了4或者6的退订,那么会强制转成类型5。
  58. **/
  59. public $cancel_policy;
  60. /**
  61. * 在新增rateplan的同时新增取消政策日历。 json格式。 date:日历的某一天,格式为"yyyy-MM-dd" cancel_policy:日历某一天的价格政策。格式和限制同cancel_policy。 如果date为空,那么会读取startDate和endDate(格式都为"yyyy-MM-dd"),即取消政策属于某一个时间段。 注意:支付类型为预付,那么可以使用所有的退订类型,但是必须是非担保;支付类型为面付或者信任住并且是无担保,那么只能使用1类型的退订;支付类型为面付或者信任住并且为担保,那么只能使用2,5类型的退订;支付类型为在线预约,那么只能使用1,2,5类型的退改。如果支付类型是面付或者信任住并且为担保,那么如果传了4或者6的退订,那么会强制转成类型5。请注意,该字段仅能维护从当前时间开始,10年以内的数据,如果超过10年,会报错。
  62. **/
  63. public $cancelPolicyCal;
  64. /**
  65. * 销售渠道。如需开通,需要申请权限。目前支持的渠道有 H:飞猪 O:钉钉商旅 A:集团内部商旅 M:无线专享价。如果只投放飞猪,改字段不用填写或者只填H;如果有多个用","分开。如果需要投放其他渠道,请联系飞猪运营或者技术支持。
  66. **/
  67. public $channel;
  68. /**
  69. * 普通保留房提前x小时自动确认时间 比如设置为6 那么从入住当日24点往前推6小时即18:00以前可以自动确认有房,否则是待确认
  70. **/
  71. public $common_allot_release_time;
  72. /**
  73. * 生效截止时间,用来控制此rateplan生效的截止时间,配合字段effective_time一起限定rp的有效期
  74. **/
  75. public $deadline_time;
  76. /**
  77. * 餐食描述
  78. **/
  79. public $dinningDesc;
  80. /**
  81. * 价格计划名称name通过加工处理以后的值
  82. **/
  83. public $displayName;
  84. /**
  85. * 生效开始时间,用来控制此rateplan生效的开始时间,配合字段deadline_time一起限定rp的有效期
  86. **/
  87. public $effective_time;
  88. /**
  89. * 产品每日开始销售时间,start_time一定为当天时间
  90. **/
  91. public $end_time;
  92. /**
  93. * RP的英文名称
  94. **/
  95. public $englishName;
  96. /**
  97. * 不推荐使用
  98. **/
  99. public $extend;
  100. /**
  101. * 不推荐使用
  102. **/
  103. public $extendFee;
  104. /**
  105. * 不推荐使用
  106. **/
  107. public $feeBreakfastAmount;
  108. /**
  109. * 不推荐使用
  110. **/
  111. public $feeBreakfastCount;
  112. /**
  113. * 不推荐使用
  114. **/
  115. public $feeGovTaxAmount;
  116. /**
  117. * 不推荐使用
  118. **/
  119. public $feeGovTaxPercent;
  120. /**
  121. * 不推荐使用
  122. **/
  123. public $feeServiceAmount;
  124. /**
  125. * 不推荐使用
  126. **/
  127. public $feeServicePercent;
  128. /**
  129. * 需申请会员权限。是否是新用户首住优惠rp。1-代表是。0-代表否。不填写代表不更新该字段。
  130. **/
  131. public $firstStay;
  132. /**
  133. * 在更新rateplan的同时,新增或更新担保日历。 date:担保日历的某一天。 guarantee:担保政策。 其中有两个属性:guaranteeType,guaranteeStartTime。 guaranteeType的可选值同guaranteeType字段,详见guaranteeType字段。guaranteeStartTime格式为"HH:mm" 。如果date为空,那么会读取startDate和endDate(格式都为"yyyy-MM-dd"),即担保政策属于某一个时间段。(如果设置了峰时担保类型,那么峰时担保时间不能为空,并且必须大于等于8点) 请注意,该字段仅能维护从当前时间开始,10年以内的数据,如果超过10年,会报错。
  134. **/
  135. public $guaranteeCal;
  136. /**
  137. * 1 PCI担保,0 支付宝担保
  138. **/
  139. public $guaranteeMode;
  140. /**
  141. * 分时担保每日开始担保时间。 (如果设置了峰时担保类型,那么峰时担保时间不能为空,并且必须大于等于8点)
  142. **/
  143. public $guaranteeStartTime;
  144. /**
  145. * 担保类型,只支持: 0 无担保 1 峰时首晚担保 2峰时全额担保 3全天首晚担保 4全天全额担保
  146. **/
  147. public $guarantee_type;
  148. /**
  149. * 酒店id
  150. **/
  151. public $hid;
  152. /**
  153. * 小时房入住时间跨度。小时房特有字段。比如4小时的小时房,那么值为4
  154. **/
  155. public $hourage;
  156. /**
  157. * 学生价,1:是;0:否
  158. **/
  159. public $isStudent;
  160. /**
  161. * 最大提前预定小时数,从入住当天的24点往前计算。例如如果这个字段设置了48,代表最多提前两天预定,那么如果想预定24号入住,,必须在23号零点以后下单。
  162. **/
  163. public $maxAdvHours;
  164. /**
  165. * 儿童最大年龄(0-18)
  166. **/
  167. public $maxChildAge;
  168. /**
  169. * 最大入住天数(1-90)。默认90
  170. **/
  171. public $maxDays;
  172. /**
  173. * 婴儿最大年龄(0-18)
  174. **/
  175. public $maxInfantAge;
  176. /**
  177. * 双方映射后的会员等级。如需开通,需要申请权限,取值范围为:1,2,3,4,5,none。比如飞猪F3对应商家V4,则传4.(如果有疑问请联系对接技术支持)
  178. **/
  179. public $memberLevel;
  180. /**
  181. * 最小提前预定小时数,从入住当天的24点往前计算。例如如果这个字段设置了48,代表必须至少提前两天预定,那么如果想预定24号入住,,必须在23号零点前下单。
  182. **/
  183. public $min_adv_hours;
  184. /**
  185. * 首日入住房间数(1-99)。默认1。不推荐使用
  186. **/
  187. public $minAmount;
  188. /**
  189. * 儿童最小年龄(0-18)
  190. **/
  191. public $minChildAge;
  192. /**
  193. * 最小入住天数(1-90)。默认1
  194. **/
  195. public $minDays;
  196. /**
  197. * 婴儿最小年龄(0-18)
  198. **/
  199. public $minInfantAge;
  200. /**
  201. * 在淘宝搜索页面展示的房价名称;(添加RP时为必须)。注意该名称不要包含早餐相关信息,如果想维护早餐信息,请设置breakfast_count字段即可。
  202. **/
  203. public $name;
  204. /**
  205. * 不推荐使用
  206. **/
  207. public $occupancy;
  208. /**
  209. * operator
  210. **/
  211. public $operator;
  212. /**
  213. * 外部酒店id
  214. **/
  215. public $out_hid;
  216. /**
  217. * 外部房型id
  218. **/
  219. public $out_rid;
  220. /**
  221. * 是否包房RP 1包房RP,0 非包房rp
  222. **/
  223. public $packRoomFlag;
  224. /**
  225. * 父rpcode,使用场景:当一个rp发布变价rate的时候,用于下单时候传递约定的rpcode给外部
  226. **/
  227. public $parentRpCode;
  228. /**
  229. * 父rpid,使用场景:当一个rp发布变价rate的时候,记录父rp信息,用于下单时候传递约定的rpcode给外部
  230. **/
  231. public $parentRpid;
  232. /**
  233. * 支付类型,只支持:1:预付5:现付6: 信用住7:在线预约8:在线预约信用住。其中5,6,7,8三种类型需要申请权限
  234. **/
  235. public $payment_type;
  236. /**
  237. * 商家价格政策编码
  238. **/
  239. public $rateplan_code;
  240. /**
  241. * 房型id
  242. **/
  243. public $rid;
  244. /**
  245. * rp类型,1为小时房。目前只支持小时房。如果不是小时房rateplan,则不要填写。如果想要清空该字段可以传入none
  246. **/
  247. public $rpType;
  248. /**
  249. * 不推荐使用,使用ratePlanCode来标识要修改的RP
  250. **/
  251. public $rpid;
  252. /**
  253. * 来源
  254. **/
  255. public $source;
  256. /**
  257. * 产品每日开始销售时间,start_time一定为当天时间
  258. **/
  259. public $startTime;
  260. /**
  261. * 1:开启(默认)2:关闭。如果没传值那么默认默认值为1;(添加RP时为必须)
  262. **/
  263. public $status;
  264. /**
  265. * super rp标记,1是;0否
  266. **/
  267. public $superRpFlag;
  268. /**
  269. * 更新RP时的 打标和去标 需求, 0 就是 去标, 1 就是打标, key的含义: non-direct-RP 表示非直连RP,, super-could-price-change-RP 表示rp的super标,打上这个tag,表明这个rateplan下单的时候支持变价,商家系统直接放开价格校验。 base-could-derived-RP 表示base rateplan标签,打上了这个tag,表明这是一个base的rateplan,基于该rateplan可以衍生出子rateplan, ebk-tail-room-RP 表示 ebk尾房rate plan级别标
  270. **/
  271. public $tagJson;
  272. /**
  273. * 系统商,一般不用填写,使用须申请
  274. **/
  275. public $vendor;
  276. public $apiParas = array();
  277. public function setAttributes($values, $safeOnly = true)
  278. {
  279. if (is_array($values)) {
  280. $attributes = array_flip($safeOnly ? $this->safeAttributes() : $this->attributes());
  281. foreach ($values as $name => $value) {
  282. if (isset($attributes[$name])) {
  283. $this->apiParas[$name] = $value;
  284. } elseif ($safeOnly) {
  285. $this->onUnsafeAttribute($name, $value);
  286. }
  287. }
  288. }
  289. parent::setAttributes($values, $safeOnly);
  290. }
  291. public function rules()
  292. {
  293. return [
  294. [['rateplan_code', 'payment_type', 'breakfast_count', 'cancel_policy', 'status', 'min_adv_hours'], 'required', 'on' => 'create'],
  295. [['min_adv_hours', 'guarantee_type'], 'number', 'on' => 'create'],
  296. [['name'], 'string', 'max' => 60],
  297. [['effective_time', 'deadline_time'], 'date'],
  298. [['out_rid', 'out_hid'], 'string', 'max' => 64]
  299. ];
  300. }
  301. public function setAgreement($agreement)
  302. {
  303. $this->agreement = $agreement;
  304. $this->apiParas["agreement"] = $agreement;
  305. }
  306. public function getAgreement()
  307. {
  308. return $this->agreement;
  309. }
  310. public function setAllotmentReleaseTime($allotmentReleaseTime)
  311. {
  312. $this->allotmentReleaseTime = $allotmentReleaseTime;
  313. $this->apiParas["allotment_release_time"] = $allotmentReleaseTime;
  314. }
  315. public function getAllotmentReleaseTime()
  316. {
  317. return $this->allotmentReleaseTime;
  318. }
  319. public function setBaseRpFlag($baseRpFlag)
  320. {
  321. $this->baseRpFlag = $baseRpFlag;
  322. $this->apiParas["base_rp_flag"] = $baseRpFlag;
  323. }
  324. public function getBaseRpFlag()
  325. {
  326. return $this->baseRpFlag;
  327. }
  328. public function setBottomPriceFlag($bottomPriceFlag)
  329. {
  330. $this->bottomPriceFlag = $bottomPriceFlag;
  331. $this->apiParas["bottom_price_flag"] = $bottomPriceFlag;
  332. }
  333. public function getBottomPriceFlag()
  334. {
  335. return $this->bottomPriceFlag;
  336. }
  337. public function setBreakfastCal($breakfastCal)
  338. {
  339. $this->breakfast_cal = $breakfastCal;
  340. $this->apiParas["breakfast_cal"] = $breakfastCal;
  341. }
  342. public function getBreakfastCal()
  343. {
  344. return $this->breakfast_cal;
  345. }
  346. public function setBreakfastCount($breakfastCount)
  347. {
  348. $this->breakfast_count = $breakfastCount;
  349. $this->apiParas["breakfast_count"] = $breakfastCount;
  350. }
  351. public function getBreakfastCount()
  352. {
  353. return $this->breakfast_count;
  354. }
  355. public function setCanCheckinEnd($canCheckinEnd)
  356. {
  357. $this->canCheckinEnd = $canCheckinEnd;
  358. $this->apiParas["can_checkin_end"] = $canCheckinEnd;
  359. }
  360. public function getCanCheckinEnd()
  361. {
  362. return $this->canCheckinEnd;
  363. }
  364. public function setCanCheckinStart($canCheckinStart)
  365. {
  366. $this->canCheckinStart = $canCheckinStart;
  367. $this->apiParas["can_checkin_start"] = $canCheckinStart;
  368. }
  369. public function getCanCheckinStart()
  370. {
  371. return $this->canCheckinStart;
  372. }
  373. public function setCancelBeforeDay($cancelBeforeDay)
  374. {
  375. $this->cancelBeforeDay = $cancelBeforeDay;
  376. $this->apiParas["cancel_before_day"] = $cancelBeforeDay;
  377. }
  378. public function getCancelBeforeDay()
  379. {
  380. return $this->cancelBeforeDay;
  381. }
  382. public function setCancelBeforeHour($cancelBeforeHour)
  383. {
  384. $this->cancelBeforeHour = $cancelBeforeHour;
  385. $this->apiParas["cancel_before_hour"] = $cancelBeforeHour;
  386. }
  387. public function getCancelBeforeHour()
  388. {
  389. return $this->cancelBeforeHour;
  390. }
  391. public function setCancelPolicy($cancelPolicy)
  392. {
  393. $this->cancel_policy = $cancelPolicy;
  394. $this->apiParas["cancel_policy"] = $cancelPolicy;
  395. }
  396. public function getCancelPolicy()
  397. {
  398. return $this->cancelPolicy;
  399. }
  400. public function setCancelPolicyCal($cancelPolicyCal)
  401. {
  402. $this->cancelPolicyCal = $cancelPolicyCal;
  403. $this->apiParas["cancel_policy_cal"] = $cancelPolicyCal;
  404. }
  405. public function getCancelPolicyCal()
  406. {
  407. return $this->cancelPolicyCal;
  408. }
  409. public function setChannel($channel)
  410. {
  411. $this->channel = $channel;
  412. $this->apiParas["channel"] = $channel;
  413. }
  414. public function getChannel()
  415. {
  416. return $this->channel;
  417. }
  418. public function setCommonAllotReleaseTime($commonAllotReleaseTime)
  419. {
  420. $this->common_allot_release_time = $commonAllotReleaseTime;
  421. $this->apiParas["common_allot_release_time"] = $commonAllotReleaseTime;
  422. }
  423. public function getCommonAllotReleaseTime()
  424. {
  425. return $this->common_allot_release_time;
  426. }
  427. public function setDeadlineTime($deadlineTime)
  428. {
  429. $this->deadline_time = $deadlineTime;
  430. $this->apiParas["deadline_time"] = $deadlineTime;
  431. }
  432. public function getDeadlineTime()
  433. {
  434. return $this->deadlineTime;
  435. }
  436. public function setDinningDesc($dinningDesc)
  437. {
  438. $this->dinningDesc = $dinningDesc;
  439. $this->apiParas["dinning_desc"] = $dinningDesc;
  440. }
  441. public function getDinningDesc()
  442. {
  443. return $this->dinningDesc;
  444. }
  445. public function setDisplayName($displayName)
  446. {
  447. $this->displayName = $displayName;
  448. $this->apiParas["display_name"] = $displayName;
  449. }
  450. public function getDisplayName()
  451. {
  452. return $this->displayName;
  453. }
  454. public function setEffectiveTime($effectiveTime)
  455. {
  456. $this->effective_time = $effectiveTime;
  457. $this->apiParas["effective_time"] = $effectiveTime;
  458. }
  459. public function getEffectiveTime()
  460. {
  461. return $this->effectiveTime;
  462. }
  463. public function setEndTime($endTime)
  464. {
  465. $this->end_time = $endTime;
  466. $this->apiParas["end_time"] = $endTime;
  467. }
  468. public function getEndTime()
  469. {
  470. return $this->endTime;
  471. }
  472. public function setEnglishName($englishName)
  473. {
  474. $this->englishName = $englishName;
  475. $this->apiParas["english_name"] = $englishName;
  476. }
  477. public function getEnglishName()
  478. {
  479. return $this->englishName;
  480. }
  481. public function setExtend($extend)
  482. {
  483. $this->extend = $extend;
  484. $this->apiParas["extend"] = $extend;
  485. }
  486. public function getExtend()
  487. {
  488. return $this->extend;
  489. }
  490. public function setExtendFee($extendFee)
  491. {
  492. $this->extendFee = $extendFee;
  493. $this->apiParas["extend_fee"] = $extendFee;
  494. }
  495. public function getExtendFee()
  496. {
  497. return $this->extendFee;
  498. }
  499. public function setFeeBreakfastAmount($feeBreakfastAmount)
  500. {
  501. $this->feeBreakfastAmount = $feeBreakfastAmount;
  502. $this->apiParas["fee_breakfast_amount"] = $feeBreakfastAmount;
  503. }
  504. public function getFeeBreakfastAmount()
  505. {
  506. return $this->feeBreakfastAmount;
  507. }
  508. public function setFeeBreakfastCount($feeBreakfastCount)
  509. {
  510. $this->feeBreakfastCount = $feeBreakfastCount;
  511. $this->apiParas["fee_breakfast_count"] = $feeBreakfastCount;
  512. }
  513. public function getFeeBreakfastCount()
  514. {
  515. return $this->feeBreakfastCount;
  516. }
  517. public function setFeeGovTaxAmount($feeGovTaxAmount)
  518. {
  519. $this->feeGovTaxAmount = $feeGovTaxAmount;
  520. $this->apiParas["fee_gov_tax_amount"] = $feeGovTaxAmount;
  521. }
  522. public function getFeeGovTaxAmount()
  523. {
  524. return $this->feeGovTaxAmount;
  525. }
  526. public function setFeeGovTaxPercent($feeGovTaxPercent)
  527. {
  528. $this->feeGovTaxPercent = $feeGovTaxPercent;
  529. $this->apiParas["fee_gov_tax_percent"] = $feeGovTaxPercent;
  530. }
  531. public function getFeeGovTaxPercent()
  532. {
  533. return $this->feeGovTaxPercent;
  534. }
  535. public function setFeeServiceAmount($feeServiceAmount)
  536. {
  537. $this->feeServiceAmount = $feeServiceAmount;
  538. $this->apiParas["fee_service_amount"] = $feeServiceAmount;
  539. }
  540. public function getFeeServiceAmount()
  541. {
  542. return $this->feeServiceAmount;
  543. }
  544. public function setFeeServicePercent($feeServicePercent)
  545. {
  546. $this->feeServicePercent = $feeServicePercent;
  547. $this->apiParas["fee_service_percent"] = $feeServicePercent;
  548. }
  549. public function getFeeServicePercent()
  550. {
  551. return $this->feeServicePercent;
  552. }
  553. public function setFirstStay($firstStay)
  554. {
  555. $this->firstStay = $firstStay;
  556. $this->apiParas["first_stay"] = $firstStay;
  557. }
  558. public function getFirstStay()
  559. {
  560. return $this->firstStay;
  561. }
  562. public function setGuaranteeCal($guaranteeCal)
  563. {
  564. $this->guaranteeCal = $guaranteeCal;
  565. $this->apiParas["guarantee_cal"] = $guaranteeCal;
  566. }
  567. public function getGuaranteeCal()
  568. {
  569. return $this->guaranteeCal;
  570. }
  571. public function setGuaranteeMode($guaranteeMode)
  572. {
  573. $this->guaranteeMode = $guaranteeMode;
  574. $this->apiParas["guarantee_mode"] = $guaranteeMode;
  575. }
  576. public function getGuaranteeMode()
  577. {
  578. return $this->guaranteeMode;
  579. }
  580. public function setGuaranteeStartTime($guaranteeStartTime)
  581. {
  582. $this->guaranteeStartTime = $guaranteeStartTime;
  583. $this->apiParas["guarantee_start_time"] = $guaranteeStartTime;
  584. }
  585. public function getGuaranteeStartTime()
  586. {
  587. return $this->guaranteeStartTime;
  588. }
  589. public function setGuaranteeType($guaranteeType)
  590. {
  591. $this->guarantee_type = $guaranteeType;
  592. $this->apiParas["guarantee_type"] = $guaranteeType;
  593. }
  594. public function getGuaranteeType()
  595. {
  596. return $this->guarantee_type;
  597. }
  598. public function setHid($hid)
  599. {
  600. $this->hid = $hid;
  601. $this->apiParas["hid"] = $hid;
  602. }
  603. public function getHid()
  604. {
  605. return $this->hid;
  606. }
  607. public function setHourage($hourage)
  608. {
  609. $this->hourage = $hourage;
  610. $this->apiParas["hourage"] = $hourage;
  611. }
  612. public function getHourage()
  613. {
  614. return $this->hourage;
  615. }
  616. public function setIsStudent($isStudent)
  617. {
  618. $this->isStudent = $isStudent;
  619. $this->apiParas["is_student"] = $isStudent;
  620. }
  621. public function getIsStudent()
  622. {
  623. return $this->isStudent;
  624. }
  625. public function setMaxAdvHours($maxAdvHours)
  626. {
  627. $this->maxAdvHours = $maxAdvHours;
  628. $this->apiParas["max_adv_hours"] = $maxAdvHours;
  629. }
  630. public function getMaxAdvHours()
  631. {
  632. return $this->maxAdvHours;
  633. }
  634. public function setMaxChildAge($maxChildAge)
  635. {
  636. $this->maxChildAge = $maxChildAge;
  637. $this->apiParas["max_child_age"] = $maxChildAge;
  638. }
  639. public function getMaxChildAge()
  640. {
  641. return $this->maxChildAge;
  642. }
  643. public function setMaxDays($maxDays)
  644. {
  645. $this->maxDays = $maxDays;
  646. $this->apiParas["max_days"] = $maxDays;
  647. }
  648. public function getMaxDays()
  649. {
  650. return $this->maxDays;
  651. }
  652. public function setMaxInfantAge($maxInfantAge)
  653. {
  654. $this->maxInfantAge = $maxInfantAge;
  655. $this->apiParas["max_infant_age"] = $maxInfantAge;
  656. }
  657. public function getMaxInfantAge()
  658. {
  659. return $this->maxInfantAge;
  660. }
  661. public function setMemberLevel($memberLevel)
  662. {
  663. $this->memberLevel = $memberLevel;
  664. $this->apiParas["member_level"] = $memberLevel;
  665. }
  666. public function getMemberLevel()
  667. {
  668. return $this->memberLevel;
  669. }
  670. public function setMinAdvHours($minAdvHours)
  671. {
  672. $this->min_adv_hours = $minAdvHours;
  673. $this->apiParas["min_adv_hours"] = $minAdvHours;
  674. }
  675. public function getMinAdvHours()
  676. {
  677. return $this->min_adv_hours;
  678. }
  679. public function setMinAmount($minAmount)
  680. {
  681. $this->minAmount = $minAmount;
  682. $this->apiParas["min_amount"] = $minAmount;
  683. }
  684. public function getMinAmount()
  685. {
  686. return $this->minAmount;
  687. }
  688. public function setMinChildAge($minChildAge)
  689. {
  690. $this->minChildAge = $minChildAge;
  691. $this->apiParas["min_child_age"] = $minChildAge;
  692. }
  693. public function getMinChildAge()
  694. {
  695. return $this->minChildAge;
  696. }
  697. public function setMinDays($minDays)
  698. {
  699. $this->minDays = $minDays;
  700. $this->apiParas["min_days"] = $minDays;
  701. }
  702. public function getMinDays()
  703. {
  704. return $this->minDays;
  705. }
  706. public function setMinInfantAge($minInfantAge)
  707. {
  708. $this->minInfantAge = $minInfantAge;
  709. $this->apiParas["min_infant_age"] = $minInfantAge;
  710. }
  711. public function getMinInfantAge()
  712. {
  713. return $this->minInfantAge;
  714. }
  715. public function setName($name)
  716. {
  717. $this->name = $name;
  718. $this->apiParas["name"] = $name;
  719. }
  720. public function getName()
  721. {
  722. return $this->name;
  723. }
  724. public function setOccupancy($occupancy)
  725. {
  726. $this->occupancy = $occupancy;
  727. $this->apiParas["occupancy"] = $occupancy;
  728. }
  729. public function getOccupancy()
  730. {
  731. return $this->occupancy;
  732. }
  733. public function setOperator($operator)
  734. {
  735. $this->operator = $operator;
  736. $this->apiParas["operator"] = $operator;
  737. }
  738. public function getOperator()
  739. {
  740. return $this->operator;
  741. }
  742. public function setOutHid($outHid)
  743. {
  744. $this->out_hid = $outHid;
  745. $this->apiParas["out_hid"] = $outHid;
  746. }
  747. public function getOutHid()
  748. {
  749. return $this->outHid;
  750. }
  751. public function setOutRid($outRid)
  752. {
  753. $this->out_rid = $outRid;
  754. $this->apiParas["out_rid"] = $outRid;
  755. }
  756. public function getOutRid()
  757. {
  758. return $this->outRid;
  759. }
  760. public function setPackRoomFlag($packRoomFlag)
  761. {
  762. $this->packRoomFlag = $packRoomFlag;
  763. $this->apiParas["pack_room_flag"] = $packRoomFlag;
  764. }
  765. public function getPackRoomFlag()
  766. {
  767. return $this->packRoomFlag;
  768. }
  769. public function setParentRpCode($parentRpCode)
  770. {
  771. $this->parentRpCode = $parentRpCode;
  772. $this->apiParas["parent_rp_code"] = $parentRpCode;
  773. }
  774. public function getParentRpCode()
  775. {
  776. return $this->parentRpCode;
  777. }
  778. public function setParentRpid($parentRpid)
  779. {
  780. $this->parentRpid = $parentRpid;
  781. $this->apiParas["parent_rpid"] = $parentRpid;
  782. }
  783. public function getParentRpid()
  784. {
  785. return $this->parentRpid;
  786. }
  787. public function setPaymentType($paymentType)
  788. {
  789. $this->payment_type = $paymentType;
  790. $this->apiParas["payment_type"] = $paymentType;
  791. }
  792. public function getPaymentType()
  793. {
  794. return $this->payment_type;
  795. }
  796. public function setRateplanCode($rateplanCode)
  797. {
  798. $this->rateplan_code = $rateplanCode;
  799. $this->apiParas["rateplan_code"] = $rateplanCode;
  800. }
  801. public function getRateplanCode()
  802. {
  803. return $this->rateplan_code;
  804. }
  805. public function setRid($rid)
  806. {
  807. $this->rid = $rid;
  808. $this->apiParas["rid"] = $rid;
  809. }
  810. public function getRid()
  811. {
  812. return $this->rid;
  813. }
  814. public function setRpType($rpType)
  815. {
  816. $this->rpType = $rpType;
  817. $this->apiParas["rp_type"] = $rpType;
  818. }
  819. public function getRpType()
  820. {
  821. return $this->rpType;
  822. }
  823. public function setRpid($rpid)
  824. {
  825. $this->rpid = $rpid;
  826. $this->apiParas["rpid"] = $rpid;
  827. }
  828. public function getRpid()
  829. {
  830. return $this->rpid;
  831. }
  832. public function setSource($source)
  833. {
  834. $this->source = $source;
  835. $this->apiParas["source"] = $source;
  836. }
  837. public function getSource()
  838. {
  839. return $this->source;
  840. }
  841. public function setStartTime($startTime)
  842. {
  843. $this->startTime = $startTime;
  844. $this->apiParas["start_time"] = $startTime;
  845. }
  846. public function getStartTime()
  847. {
  848. return $this->startTime;
  849. }
  850. public function setStatus($status)
  851. {
  852. $this->status = $status;
  853. $this->apiParas["status"] = $status;
  854. }
  855. public function getStatus()
  856. {
  857. return $this->status;
  858. }
  859. public function setSuperRpFlag($superRpFlag)
  860. {
  861. $this->superRpFlag = $superRpFlag;
  862. $this->apiParas["super_rp_flag"] = $superRpFlag;
  863. }
  864. public function getSuperRpFlag()
  865. {
  866. return $this->superRpFlag;
  867. }
  868. public function setTagJson($tagJson)
  869. {
  870. $this->tagJson = $tagJson;
  871. $this->apiParas["tag_json"] = $tagJson;
  872. }
  873. public function getTagJson()
  874. {
  875. return $this->tagJson;
  876. }
  877. public function setVendor($vendor)
  878. {
  879. $this->vendor = $vendor;
  880. $this->apiParas["vendor"] = $vendor;
  881. }
  882. public function getVendor()
  883. {
  884. return $this->vendor;
  885. }
  886. public function getApiMethodName()
  887. {
  888. return "taobao.xhotel.rateplan.add";
  889. }
  890. public function getApiParas()
  891. {
  892. return $this->apiParas;
  893. }
  894. public function putOtherTextParam($key, $value)
  895. {
  896. $this->apiParas[$key] = $value;
  897. $this->$key = $value;
  898. }
  899. }