google-apis-places_v1 0.28.0 → 0.29.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17902918e100820305f3557ef333c42bfddd001d3cafe039c5fb502db321ebe2
4
- data.tar.gz: eac7bd5202bdcfb8bf36781b51811d576658e8901e4e74a37456e4a1615f08b2
3
+ metadata.gz: '08dbb62b933da0b337570a85ebabe37ebf978e44bce90725b5e404969707e50a'
4
+ data.tar.gz: 7cde5bed811c6b35715ea088ed2b6c9200c57dbecf54181e054f61cef58322e6
5
5
  SHA512:
6
- metadata.gz: 7e1f23f636b084ec80ce570b484af742354b1e973874540b30328d0af59057bb73de89b777d6e3953e7dffc51f0f0d711060c1ce604c6ee513609443d6f70fa0
7
- data.tar.gz: 351e52fad6924842d4370fc98020c753eb0b13cb3bfc6f7fc8f6fa15272f2b778763dd159ea74641e545f92dc52190cac04e7b0c15f654aa3e0b4f09f1334d70
6
+ metadata.gz: 3930b48018d00340e9743175d49acdfa3d36b6f68aecf0492848cbab84a96c66739a7959767c145f79cc69ff14983af4d7a2bfe3f221db4c31d160d178eefd46
7
+ data.tar.gz: 4baca64e790f96cd1a7b191186567438b2fea0f21275fd8c3d218f8212840b370454fd5f787968b498ba9178db50142b84c311bf72a3bdfbec6a690af5cf2ff0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-places_v1
2
2
 
3
+ ### v0.29.0 (2024-11-10)
4
+
5
+ * Regenerated from discovery document revision 20241106
6
+
3
7
  ### v0.28.0 (2024-11-03)
4
8
 
5
9
  * Regenerated from discovery document revision 20241029
@@ -234,6 +234,18 @@ module Google
234
234
  class GoogleMapsPlacesV1AutocompletePlacesRequest
235
235
  include Google::Apis::Core::Hashable
236
236
 
237
+ # Optional. Include pure service area businesses if the field is set to true.
238
+ # Pure service area business is a business that visits or delivers to customers
239
+ # directly but does not serve customers at their business address. For example,
240
+ # businesses like cleaning services or plumbers. Those businesses do not have a
241
+ # physical address or location on Google Maps. Places will not return fields
242
+ # including `location`, `plus_code`, and other location related fields for these
243
+ # businesses.
244
+ # Corresponds to the JSON property `includePureServiceAreaBusinesses`
245
+ # @return [Boolean]
246
+ attr_accessor :include_pure_service_area_businesses
247
+ alias_method :include_pure_service_area_businesses?, :include_pure_service_area_businesses
248
+
237
249
  # Optional. If true, the response will include both Place and query predictions.
238
250
  # Otherwise the response will only return Place predictions.
239
251
  # Corresponds to the JSON property `includeQueryPredictions`
@@ -334,6 +346,7 @@ module Google
334
346
 
335
347
  # Update properties of this object
336
348
  def update!(**args)
349
+ @include_pure_service_area_businesses = args[:include_pure_service_area_businesses] if args.key?(:include_pure_service_area_businesses)
337
350
  @include_query_predictions = args[:include_query_predictions] if args.key?(:include_query_predictions)
338
351
  @included_primary_types = args[:included_primary_types] if args.key?(:included_primary_types)
339
352
  @included_region_codes = args[:included_region_codes] if args.key?(:included_region_codes)
@@ -1168,11 +1181,16 @@ module Google
1168
1181
  # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAttribution>]
1169
1182
  attr_accessor :attributions
1170
1183
 
1171
- #
1184
+ # The business status for the place.
1172
1185
  # Corresponds to the JSON property `businessStatus`
1173
1186
  # @return [String]
1174
1187
  attr_accessor :business_status
1175
1188
 
1189
+ # List of places in which the current place is located.
1190
+ # Corresponds to the JSON property `containingPlaces`
1191
+ # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceContainingPlace>]
1192
+ attr_accessor :containing_places
1193
+
1176
1194
  # Specifies if the business supports curbside pickup.
1177
1195
  # Corresponds to the JSON property `curbsidePickup`
1178
1196
  # @return [Boolean]
@@ -1359,6 +1377,12 @@ module Google
1359
1377
  # @return [String]
1360
1378
  attr_accessor :price_level
1361
1379
 
1380
+ # The price range associated with a Place. `end_price` could be unset, which
1381
+ # indicates a range without upper bound (e.g. "More than $100").
1382
+ # Corresponds to the JSON property `priceRange`
1383
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1PriceRange]
1384
+ attr_accessor :price_range
1385
+
1362
1386
  # The primary type of the given result. This type must one of the Places API
1363
1387
  # supported types. For example, "restaurant", "cafe", "airport", etc. A place
1364
1388
  # can only have a single primary type. For the complete list of possible values,
@@ -1373,6 +1397,16 @@ module Google
1373
1397
  # @return [Google::Apis::PlacesV1::GoogleTypeLocalizedText]
1374
1398
  attr_accessor :primary_type_display_name
1375
1399
 
1400
+ # Indicates whether the place is a pure service area business. Pure service area
1401
+ # business is a business that visits or delivers to customers directly but does
1402
+ # not serve customers at their business address. For example, businesses like
1403
+ # cleaning services or plumbers. Those businesses may not have a physical
1404
+ # address or location on Google Maps.
1405
+ # Corresponds to the JSON property `pureServiceAreaBusiness`
1406
+ # @return [Boolean]
1407
+ attr_accessor :pure_service_area_business
1408
+ alias_method :pure_service_area_business?, :pure_service_area_business
1409
+
1376
1410
  # A rating between 1.0 and 5.0, based on user reviews of this place.
1377
1411
  # Corresponds to the JSON property `rating`
1378
1412
  # @return [Float]
@@ -1547,6 +1581,7 @@ module Google
1547
1581
  @area_summary = args[:area_summary] if args.key?(:area_summary)
1548
1582
  @attributions = args[:attributions] if args.key?(:attributions)
1549
1583
  @business_status = args[:business_status] if args.key?(:business_status)
1584
+ @containing_places = args[:containing_places] if args.key?(:containing_places)
1550
1585
  @curbside_pickup = args[:curbside_pickup] if args.key?(:curbside_pickup)
1551
1586
  @current_opening_hours = args[:current_opening_hours] if args.key?(:current_opening_hours)
1552
1587
  @current_secondary_opening_hours = args[:current_secondary_opening_hours] if args.key?(:current_secondary_opening_hours)
@@ -1578,8 +1613,10 @@ module Google
1578
1613
  @photos = args[:photos] if args.key?(:photos)
1579
1614
  @plus_code = args[:plus_code] if args.key?(:plus_code)
1580
1615
  @price_level = args[:price_level] if args.key?(:price_level)
1616
+ @price_range = args[:price_range] if args.key?(:price_range)
1581
1617
  @primary_type = args[:primary_type] if args.key?(:primary_type)
1582
1618
  @primary_type_display_name = args[:primary_type_display_name] if args.key?(:primary_type_display_name)
1619
+ @pure_service_area_business = args[:pure_service_area_business] if args.key?(:pure_service_area_business)
1583
1620
  @rating = args[:rating] if args.key?(:rating)
1584
1621
  @regular_opening_hours = args[:regular_opening_hours] if args.key?(:regular_opening_hours)
1585
1622
  @regular_secondary_opening_hours = args[:regular_secondary_opening_hours] if args.key?(:regular_secondary_opening_hours)
@@ -1743,6 +1780,31 @@ module Google
1743
1780
  end
1744
1781
  end
1745
1782
 
1783
+ # Info about the place in which this place is located.
1784
+ class GoogleMapsPlacesV1PlaceContainingPlace
1785
+ include Google::Apis::Core::Hashable
1786
+
1787
+ # The place id of the place in which this place is located.
1788
+ # Corresponds to the JSON property `id`
1789
+ # @return [String]
1790
+ attr_accessor :id
1791
+
1792
+ # The resource name of the place in which this place is located.
1793
+ # Corresponds to the JSON property `name`
1794
+ # @return [String]
1795
+ attr_accessor :name
1796
+
1797
+ def initialize(**args)
1798
+ update!(**args)
1799
+ end
1800
+
1801
+ # Update properties of this object
1802
+ def update!(**args)
1803
+ @id = args[:id] if args.key?(:id)
1804
+ @name = args[:name] if args.key?(:name)
1805
+ end
1806
+ end
1807
+
1746
1808
  # Experimental: See https://developers.google.com/maps/documentation/places/web-
1747
1809
  # service/experimental/places-generative for more details. AI-generated summary
1748
1810
  # of the place.
@@ -1841,6 +1903,20 @@ module Google
1841
1903
  class GoogleMapsPlacesV1PlaceOpeningHours
1842
1904
  include Google::Apis::Core::Hashable
1843
1905
 
1906
+ # The next time the current opening hours period ends up to 7 days in the future.
1907
+ # This field is only populated if the opening hours period is active at the
1908
+ # time of serving the request.
1909
+ # Corresponds to the JSON property `nextCloseTime`
1910
+ # @return [String]
1911
+ attr_accessor :next_close_time
1912
+
1913
+ # The next time the current opening hours period starts up to 7 days in the
1914
+ # future. This field is only populated if the opening hours period is not active
1915
+ # at the time of serving the request.
1916
+ # Corresponds to the JSON property `nextOpenTime`
1917
+ # @return [String]
1918
+ attr_accessor :next_open_time
1919
+
1844
1920
  # Whether the opening hours period is currently active. For regular opening
1845
1921
  # hours and current opening hours, this field means whether the place is open.
1846
1922
  # For secondary opening hours and current secondary opening hours, this field
@@ -1884,6 +1960,8 @@ module Google
1884
1960
 
1885
1961
  # Update properties of this object
1886
1962
  def update!(**args)
1963
+ @next_close_time = args[:next_close_time] if args.key?(:next_close_time)
1964
+ @next_open_time = args[:next_open_time] if args.key?(:next_open_time)
1887
1965
  @open_now = args[:open_now] if args.key?(:open_now)
1888
1966
  @periods = args[:periods] if args.key?(:periods)
1889
1967
  @secondary_hours_type = args[:secondary_hours_type] if args.key?(:secondary_hours_type)
@@ -2188,6 +2266,32 @@ module Google
2188
2266
  end
2189
2267
  end
2190
2268
 
2269
+ # The price range associated with a Place. `end_price` could be unset, which
2270
+ # indicates a range without upper bound (e.g. "More than $100").
2271
+ class GoogleMapsPlacesV1PriceRange
2272
+ include Google::Apis::Core::Hashable
2273
+
2274
+ # Represents an amount of money with its currency type.
2275
+ # Corresponds to the JSON property `endPrice`
2276
+ # @return [Google::Apis::PlacesV1::GoogleTypeMoney]
2277
+ attr_accessor :end_price
2278
+
2279
+ # Represents an amount of money with its currency type.
2280
+ # Corresponds to the JSON property `startPrice`
2281
+ # @return [Google::Apis::PlacesV1::GoogleTypeMoney]
2282
+ attr_accessor :start_price
2283
+
2284
+ def initialize(**args)
2285
+ update!(**args)
2286
+ end
2287
+
2288
+ # Update properties of this object
2289
+ def update!(**args)
2290
+ @end_price = args[:end_price] if args.key?(:end_price)
2291
+ @start_price = args[:start_price] if args.key?(:start_price)
2292
+ end
2293
+ end
2294
+
2191
2295
  # Experimental: See https://developers.google.com/maps/documentation/places/web-
2192
2296
  # service/experimental/places-generative for more details. Reference that the
2193
2297
  # generative content is related to.
@@ -2633,6 +2737,18 @@ module Google
2633
2737
  # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextRequestEvOptions]
2634
2738
  attr_accessor :ev_options
2635
2739
 
2740
+ # Optional. Include pure service area businesses if the field is set to true.
2741
+ # Pure service area business is a business that visits or delivers to customers
2742
+ # directly but does not serve customers at their business address. For example,
2743
+ # businesses like cleaning services or plumbers. Those businesses do not have a
2744
+ # physical address or location on Google Maps. Places will not return fields
2745
+ # including `location`, `plus_code`, and other location related fields for these
2746
+ # businesses.
2747
+ # Corresponds to the JSON property `includePureServiceAreaBusinesses`
2748
+ # @return [Boolean]
2749
+ attr_accessor :include_pure_service_area_businesses
2750
+ alias_method :include_pure_service_area_businesses?, :include_pure_service_area_businesses
2751
+
2636
2752
  # The requested place type. Full list of types supported: https://developers.
2637
2753
  # google.com/maps/documentation/places/web-service/place-types. Only support one
2638
2754
  # included type.
@@ -2772,6 +2888,7 @@ module Google
2772
2888
  # Update properties of this object
2773
2889
  def update!(**args)
2774
2890
  @ev_options = args[:ev_options] if args.key?(:ev_options)
2891
+ @include_pure_service_area_businesses = args[:include_pure_service_area_businesses] if args.key?(:include_pure_service_area_businesses)
2775
2892
  @included_type = args[:included_type] if args.key?(:included_type)
2776
2893
  @language_code = args[:language_code] if args.key?(:language_code)
2777
2894
  @location_bias = args[:location_bias] if args.key?(:location_bias)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module PlacesV1
18
18
  # Version of the google-apis-places_v1 gem
19
- GEM_VERSION = "0.28.0"
19
+ GEM_VERSION = "0.29.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241029"
25
+ REVISION = "20241106"
26
26
  end
27
27
  end
28
28
  end
@@ -226,6 +226,12 @@ module Google
226
226
  include Google::Apis::Core::JsonObjectSupport
227
227
  end
228
228
 
229
+ class GoogleMapsPlacesV1PlaceContainingPlace
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
229
235
  class GoogleMapsPlacesV1PlaceGenerativeSummary
230
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
231
237
 
@@ -292,6 +298,12 @@ module Google
292
298
  include Google::Apis::Core::JsonObjectSupport
293
299
  end
294
300
 
301
+ class GoogleMapsPlacesV1PriceRange
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
295
307
  class GoogleMapsPlacesV1References
296
308
  class Representation < Google::Apis::Core::JsonRepresentation; end
297
309
 
@@ -463,6 +475,7 @@ module Google
463
475
  class GoogleMapsPlacesV1AutocompletePlacesRequest
464
476
  # @private
465
477
  class Representation < Google::Apis::Core::JsonRepresentation
478
+ property :include_pure_service_area_businesses, as: 'includePureServiceAreaBusinesses'
466
479
  property :include_query_predictions, as: 'includeQueryPredictions'
467
480
  collection :included_primary_types, as: 'includedPrimaryTypes'
468
481
  collection :included_region_codes, as: 'includedRegionCodes'
@@ -723,6 +736,8 @@ module Google
723
736
  collection :attributions, as: 'attributions', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAttribution, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAttribution::Representation
724
737
 
725
738
  property :business_status, as: 'businessStatus'
739
+ collection :containing_places, as: 'containingPlaces', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceContainingPlace, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceContainingPlace::Representation
740
+
726
741
  property :curbside_pickup, as: 'curbsidePickup'
727
742
  property :current_opening_hours, as: 'currentOpeningHours', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours::Representation
728
743
 
@@ -767,9 +782,12 @@ module Google
767
782
  property :plus_code, as: 'plusCode', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlacePlusCode, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlacePlusCode::Representation
768
783
 
769
784
  property :price_level, as: 'priceLevel'
785
+ property :price_range, as: 'priceRange', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PriceRange, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PriceRange::Representation
786
+
770
787
  property :primary_type, as: 'primaryType'
771
788
  property :primary_type_display_name, as: 'primaryTypeDisplayName', class: Google::Apis::PlacesV1::GoogleTypeLocalizedText, decorator: Google::Apis::PlacesV1::GoogleTypeLocalizedText::Representation
772
789
 
790
+ property :pure_service_area_business, as: 'pureServiceAreaBusiness'
773
791
  property :rating, as: 'rating'
774
792
  property :regular_opening_hours, as: 'regularOpeningHours', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHours::Representation
775
793
 
@@ -839,6 +857,14 @@ module Google
839
857
  end
840
858
  end
841
859
 
860
+ class GoogleMapsPlacesV1PlaceContainingPlace
861
+ # @private
862
+ class Representation < Google::Apis::Core::JsonRepresentation
863
+ property :id, as: 'id'
864
+ property :name, as: 'name'
865
+ end
866
+ end
867
+
842
868
  class GoogleMapsPlacesV1PlaceGenerativeSummary
843
869
  # @private
844
870
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -867,6 +893,8 @@ module Google
867
893
  class GoogleMapsPlacesV1PlaceOpeningHours
868
894
  # @private
869
895
  class Representation < Google::Apis::Core::JsonRepresentation
896
+ property :next_close_time, as: 'nextCloseTime'
897
+ property :next_open_time, as: 'nextOpenTime'
870
898
  property :open_now, as: 'openNow'
871
899
  collection :periods, as: 'periods', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHoursPeriod, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceOpeningHoursPeriod::Representation
872
900
 
@@ -953,6 +981,16 @@ module Google
953
981
  end
954
982
  end
955
983
 
984
+ class GoogleMapsPlacesV1PriceRange
985
+ # @private
986
+ class Representation < Google::Apis::Core::JsonRepresentation
987
+ property :end_price, as: 'endPrice', class: Google::Apis::PlacesV1::GoogleTypeMoney, decorator: Google::Apis::PlacesV1::GoogleTypeMoney::Representation
988
+
989
+ property :start_price, as: 'startPrice', class: Google::Apis::PlacesV1::GoogleTypeMoney, decorator: Google::Apis::PlacesV1::GoogleTypeMoney::Representation
990
+
991
+ end
992
+ end
993
+
956
994
  class GoogleMapsPlacesV1References
957
995
  # @private
958
996
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1060,6 +1098,7 @@ module Google
1060
1098
  class Representation < Google::Apis::Core::JsonRepresentation
1061
1099
  property :ev_options, as: 'evOptions', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextRequestEvOptions, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextRequestEvOptions::Representation
1062
1100
 
1101
+ property :include_pure_service_area_businesses, as: 'includePureServiceAreaBusinesses'
1063
1102
  property :included_type, as: 'includedType'
1064
1103
  property :language_code, as: 'languageCode'
1065
1104
  property :location_bias, as: 'locationBias', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextRequestLocationBias, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextRequestLocationBias::Representation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-places_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.0
4
+ version: 0.29.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-03 00:00:00.000000000 Z
11
+ date: 2024-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-places_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-places_v1/v0.28.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-places_v1/v0.29.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-places_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.21
78
+ rubygems_version: 3.5.22
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Places API (New) V1