Skip to content

Commit fa7a36c

Browse files
1 parent 3d5bf3f commit fa7a36c

4 files changed

Lines changed: 96 additions & 1 deletion

src/MapsPlaces/GoogleMapsPlacesV1AutocompletePlacesRequest.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
class GoogleMapsPlacesV1AutocompletePlacesRequest extends \Google\Collection
2121
{
2222
protected $collection_key = 'includedRegionCodes';
23+
/**
24+
* Optional. If true, include businesses that are not yet open but will open
25+
* in the future.
26+
*
27+
* @var bool
28+
*/
29+
public $includeFutureOpeningBusinesses;
2330
/**
2431
* Optional. Include pure service area businesses if the field is set to true.
2532
* Pure service area business is a business that visits or delivers to
@@ -123,6 +130,23 @@ class GoogleMapsPlacesV1AutocompletePlacesRequest extends \Google\Collection
123130
*/
124131
public $sessionToken;
125132

133+
/**
134+
* Optional. If true, include businesses that are not yet open but will open
135+
* in the future.
136+
*
137+
* @param bool $includeFutureOpeningBusinesses
138+
*/
139+
public function setIncludeFutureOpeningBusinesses($includeFutureOpeningBusinesses)
140+
{
141+
$this->includeFutureOpeningBusinesses = $includeFutureOpeningBusinesses;
142+
}
143+
/**
144+
* @return bool
145+
*/
146+
public function getIncludeFutureOpeningBusinesses()
147+
{
148+
return $this->includeFutureOpeningBusinesses;
149+
}
126150
/**
127151
* Optional. Include pure service area businesses if the field is set to true.
128152
* Pure service area business is a business that visits or delivers to

src/MapsPlaces/GoogleMapsPlacesV1Place.php

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ class GoogleMapsPlacesV1Place extends \Google\Collection
3535
* The establishment is permanently closed.
3636
*/
3737
public const BUSINESS_STATUS_CLOSED_PERMANENTLY = 'CLOSED_PERMANENTLY';
38+
/**
39+
* The establishment will open in the future.
40+
*/
41+
public const BUSINESS_STATUS_FUTURE_OPENING = 'FUTURE_OPENING';
3842
/**
3943
* Place price level is unspecified or unknown.
4044
*/
@@ -231,6 +235,8 @@ class GoogleMapsPlacesV1Place extends \Google\Collection
231235
public $nationalPhoneNumber;
232236
protected $neighborhoodSummaryType = GoogleMapsPlacesV1PlaceNeighborhoodSummary::class;
233237
protected $neighborhoodSummaryDataType = '';
238+
protected $openingDateType = GoogleTypeDate::class;
239+
protected $openingDateDataType = '';
234240
/**
235241
* Place provides outdoor seating.
236242
*
@@ -532,7 +538,7 @@ public function getAttributions()
532538
* The business status for the place.
533539
*
534540
* Accepted values: BUSINESS_STATUS_UNSPECIFIED, OPERATIONAL,
535-
* CLOSED_TEMPORARILY, CLOSED_PERMANENTLY
541+
* CLOSED_TEMPORARILY, CLOSED_PERMANENTLY, FUTURE_OPENING
536542
*
537543
* @param self::BUSINESS_STATUS_* $businessStatus
538544
*/
@@ -1088,6 +1094,23 @@ public function getNeighborhoodSummary()
10881094
{
10891095
return $this->neighborhoodSummary;
10901096
}
1097+
/**
1098+
* The date this place will open in the future. This field is only populated
1099+
* if the business status is FUTURE_OPENING.
1100+
*
1101+
* @param GoogleTypeDate $openingDate
1102+
*/
1103+
public function setOpeningDate(GoogleTypeDate $openingDate)
1104+
{
1105+
$this->openingDate = $openingDate;
1106+
}
1107+
/**
1108+
* @return GoogleTypeDate
1109+
*/
1110+
public function getOpeningDate()
1111+
{
1112+
return $this->openingDate;
1113+
}
10911114
/**
10921115
* Place provides outdoor seating.
10931116
*

src/MapsPlaces/GoogleMapsPlacesV1SearchNearbyRequest.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ class GoogleMapsPlacesV1SearchNearbyRequest extends \Google\Collection
7070
* @var string[]
7171
*/
7272
public $excludedTypes;
73+
/**
74+
* Optional. If true, include businesses that are not yet open but will open
75+
* in the future.
76+
*
77+
* @var bool
78+
*/
79+
public $includeFutureOpeningBusinesses;
7380
/**
7481
* Included primary Place type (e.g. "restaurant" or "gas_station") from
7582
* https://developers.google.com/maps/documentation/places/web-service/place-
@@ -204,6 +211,23 @@ public function getExcludedTypes()
204211
{
205212
return $this->excludedTypes;
206213
}
214+
/**
215+
* Optional. If true, include businesses that are not yet open but will open
216+
* in the future.
217+
*
218+
* @param bool $includeFutureOpeningBusinesses
219+
*/
220+
public function setIncludeFutureOpeningBusinesses($includeFutureOpeningBusinesses)
221+
{
222+
$this->includeFutureOpeningBusinesses = $includeFutureOpeningBusinesses;
223+
}
224+
/**
225+
* @return bool
226+
*/
227+
public function getIncludeFutureOpeningBusinesses()
228+
{
229+
return $this->includeFutureOpeningBusinesses;
230+
}
207231
/**
208232
* Included primary Place type (e.g. "restaurant" or "gas_station") from
209233
* https://developers.google.com/maps/documentation/places/web-service/place-

src/MapsPlaces/GoogleMapsPlacesV1SearchTextRequest.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ class GoogleMapsPlacesV1SearchTextRequest extends \Google\Collection
3636
protected $collection_key = 'priceLevels';
3737
protected $evOptionsType = GoogleMapsPlacesV1SearchTextRequestEVOptions::class;
3838
protected $evOptionsDataType = '';
39+
/**
40+
* Optional. If true, include businesses that are not yet open but will open
41+
* in the future.
42+
*
43+
* @var bool
44+
*/
45+
public $includeFutureOpeningBusinesses;
3946
/**
4047
* Optional. Include pure service area businesses if the field is set to true.
4148
* Pure service area business is a business that visits or delivers to
@@ -183,6 +190,23 @@ public function getEvOptions()
183190
{
184191
return $this->evOptions;
185192
}
193+
/**
194+
* Optional. If true, include businesses that are not yet open but will open
195+
* in the future.
196+
*
197+
* @param bool $includeFutureOpeningBusinesses
198+
*/
199+
public function setIncludeFutureOpeningBusinesses($includeFutureOpeningBusinesses)
200+
{
201+
$this->includeFutureOpeningBusinesses = $includeFutureOpeningBusinesses;
202+
}
203+
/**
204+
* @return bool
205+
*/
206+
public function getIncludeFutureOpeningBusinesses()
207+
{
208+
return $this->includeFutureOpeningBusinesses;
209+
}
186210
/**
187211
* Optional. Include pure service area businesses if the field is set to true.
188212
* Pure service area business is a business that visits or delivers to

0 commit comments

Comments
 (0)