Skip to content

Commit ec0ec63

Browse files
committed
add business_data/google/hotel_info 'load_prices_by_dates'
1 parent 80d0102 commit ec0ec63

File tree

2 files changed

+81
-1
lines changed

2 files changed

+81
-1
lines changed

src/DFSClient/Models/BusinessDataApi/Google/Hotels/HotelInfo/HotelInfoLive.php

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class HotelInfoLive extends AbstractModel
1010
protected $method = 'POST';
1111
protected $isSupportedMerge = true;
1212
protected $pathToMainData = 'tasks->{$postID}->result';
13-
protected $requestToFunction = 'business_data/google/hotel_info/live/{resultType}';
13+
protected $requestToFunction = 'business_data/google/hotel_info/live/{$resultType}';
1414
protected $resultShouldBeTransformedToArray = true;
1515
protected $useNewMapper = true;
1616

@@ -163,6 +163,46 @@ public function setChildren(array $children)
163163
return $this;
164164
}
165165

166+
/**
167+
* @param bool $loadPricesByDates
168+
* @return $this
169+
*/
170+
public function setLoadPricesByDates(bool $loadPricesByDates)
171+
{
172+
$this->payload['load_prices_by_dates'] = $loadPricesByDates;
173+
return $this;
174+
}
175+
176+
/**
177+
* @param string $pricesStartDate
178+
* @return $this
179+
*/
180+
public function setPricesStartDate(string $pricesStartDate)
181+
{
182+
$this->payload['prices_start_date'] = $pricesStartDate;
183+
return $this;
184+
}
185+
186+
/**
187+
* @param string $pricesEndDate
188+
* @return $this
189+
*/
190+
public function setPricesEndDate(string $pricesEndDate)
191+
{
192+
$this->payload['prices_end_date'] = $pricesEndDate;
193+
return $this;
194+
}
195+
196+
/**
197+
* @param string $pricesDateRange
198+
* @return $this
199+
*/
200+
public function setPricesDateRange(string $pricesDateRange)
201+
{
202+
$this->payload['prices_date_range'] = $pricesDateRange;
203+
return $this;
204+
}
205+
166206
/**
167207
* @param string $tag
168208
* @return $this

src/DFSClient/Models/BusinessDataApi/Google/Hotels/HotelInfo/HotelInfoSetTask.php

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,46 @@ public function setChildren(array $children)
153153
return $this;
154154
}
155155

156+
/**
157+
* @param bool $loadPricesByDates
158+
* @return $this
159+
*/
160+
public function setLoadPricesByDates(bool $loadPricesByDates)
161+
{
162+
$this->payload['load_prices_by_dates'] = $loadPricesByDates;
163+
return $this;
164+
}
165+
166+
/**
167+
* @param string $pricesStartDate
168+
* @return $this
169+
*/
170+
public function setPricesStartDate(string $pricesStartDate)
171+
{
172+
$this->payload['prices_start_date'] = $pricesStartDate;
173+
return $this;
174+
}
175+
176+
/**
177+
* @param string $pricesEndDate
178+
* @return $this
179+
*/
180+
public function setPricesEndDate(string $pricesEndDate)
181+
{
182+
$this->payload['prices_end_date'] = $pricesEndDate;
183+
return $this;
184+
}
185+
186+
/**
187+
* @param string $pricesDateRange
188+
* @return $this
189+
*/
190+
public function setPricesDateRange(string $pricesDateRange)
191+
{
192+
$this->payload['prices_date_range'] = $pricesDateRange;
193+
return $this;
194+
}
195+
156196
/**
157197
* @param string $tag
158198
* @return $this

0 commit comments

Comments
 (0)