HotelRoomsSearchRequest.php
3.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<?php
/**
* TOP API: taobao.hotel.rooms.search request
*
* @author auto create
* @since 1.0, 2012-12-13 16:33:03
*/
class HotelRoomsSearchRequest
{
/**
* 酒店房间商品gid列表,多个gid用英文逗号隔开,一次不超过20个。gids,item_ids , hids,rids四项必须传一项,同时传递的情况下,作为查询条件的优先级由高到低依次为gids,item_ids , hids,rids。
**/
private $gids;
/**
* 酒店hid列表,多个hid用英文逗号隔开,一次不超过5个。gids,item_ids , hids,rids四项必须传一项,同时传递的情况下,作为查询条件的优先级由高到低依次为gids,item_ids , hids,rids。
**/
private $hids;
/**
* 酒店房间商品item_id列表,多个item_id用英文逗号隔开,一次不超过20个。gids,item_ids , hids,rids四项必须传一项,同时传递的情况下,作为查询条件的优先级由高到低依次为gids,item_ids , hids,rids。当item_ids参数值为-1,gids项不传值时,会返回卖家所有商品列表
**/
private $itemIds;
/**
* 是否需要返回该商品的酒店信息。可选值:true,false。
**/
private $needHotel;
/**
* 是否需要返回该商品的宝贝描述。可选值:true,false。
**/
private $needRoomDesc;
/**
* 是否需要返回该商品的房态列表。可选值:true,false。
**/
private $needRoomQuotas;
/**
* 是否需要返回该商品的房型信息。可选值:true,false。
**/
private $needRoomType;
/**
* 分页页码。取值范围,大于零的整数,默认值1,即返回第一页的数据。页面大小为20
**/
private $pageNo;
/**
* 房型rid列表,多个rid用英文逗号隔开,一次不超过20个。gids,item_ids , hids,rids四项必须传一项,同时传递的情况下,作为查询条件的优先级由高到低依次为gids,item_ids , hids,rids。
**/
private $rids;
private $apiParas = array();
public function setGids($gids)
{
$this->gids = $gids;
$this->apiParas["gids"] = $gids;
}
public function getGids()
{
return $this->gids;
}
public function setHids($hids)
{
$this->hids = $hids;
$this->apiParas["hids"] = $hids;
}
public function getHids()
{
return $this->hids;
}
public function setItemIds($itemIds)
{
$this->itemIds = $itemIds;
$this->apiParas["item_ids"] = $itemIds;
}
public function getItemIds()
{
return $this->itemIds;
}
public function setNeedHotel($needHotel)
{
$this->needHotel = $needHotel;
$this->apiParas["need_hotel"] = $needHotel;
}
public function getNeedHotel()
{
return $this->needHotel;
}
public function setNeedRoomDesc($needRoomDesc)
{
$this->needRoomDesc = $needRoomDesc;
$this->apiParas["need_room_desc"] = $needRoomDesc;
}
public function getNeedRoomDesc()
{
return $this->needRoomDesc;
}
public function setNeedRoomQuotas($needRoomQuotas)
{
$this->needRoomQuotas = $needRoomQuotas;
$this->apiParas["need_room_quotas"] = $needRoomQuotas;
}
public function getNeedRoomQuotas()
{
return $this->needRoomQuotas;
}
public function setNeedRoomType($needRoomType)
{
$this->needRoomType = $needRoomType;
$this->apiParas["need_room_type"] = $needRoomType;
}
public function getNeedRoomType()
{
return $this->needRoomType;
}
public function setPageNo($pageNo)
{
$this->pageNo = $pageNo;
$this->apiParas["page_no"] = $pageNo;
}
public function getPageNo()
{
return $this->pageNo;
}
public function setRids($rids)
{
$this->rids = $rids;
$this->apiParas["rids"] = $rids;
}
public function getRids()
{
return $this->rids;
}
public function getApiMethodName()
{
return "taobao.hotel.rooms.search";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}