Class: Google::Apis::ContentV2::AccountShippingLocationGroup
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::AccountShippingLocationGroup
- Defined in:
- generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb
Overview
A user-defined locations group in a given country. All the locations of the group must be of the same type.
Instance Attribute Summary collapse
-
#country ⇒ String
The CLDR territory code of the country in which this location group is.
-
#location_ids ⇒ Array<String>
A location ID (also called criteria ID) representing administrative areas, smaller country subdivisions (counties), or cities.
-
#name ⇒ String
The name of the location group.
-
#postal_code_ranges ⇒ Array<Google::Apis::ContentV2::AccountShippingPostalCodeRange>
A postal code range representing a city or a set of cities.
-
#postal_codes ⇒ Array<String>
A postal code representing a city or a set of cities.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccountShippingLocationGroup
constructor
A new instance of AccountShippingLocationGroup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ AccountShippingLocationGroup
Returns a new instance of AccountShippingLocationGroup.
360 361 362 |
# File 'generated/google/apis/content_v2/classes.rb', line 360 def initialize(**args) update!(**args) end |
Instance Attribute Details
#country ⇒ String
The CLDR territory code of the country in which this location group is.
Corresponds to the JSON property country
335 336 337 |
# File 'generated/google/apis/content_v2/classes.rb', line 335 def country @country end |
#location_ids ⇒ Array<String>
A location ID (also called criteria ID) representing administrative areas,
smaller country subdivisions (counties), or cities.
Corresponds to the JSON property locationIds
341 342 343 |
# File 'generated/google/apis/content_v2/classes.rb', line 341 def location_ids @location_ids end |
#name ⇒ String
The name of the location group.
Corresponds to the JSON property name
346 347 348 |
# File 'generated/google/apis/content_v2/classes.rb', line 346 def name @name end |
#postal_code_ranges ⇒ Array<Google::Apis::ContentV2::AccountShippingPostalCodeRange>
A postal code range representing a city or a set of cities.
Corresponds to the JSON property postalCodeRanges
351 352 353 |
# File 'generated/google/apis/content_v2/classes.rb', line 351 def postal_code_ranges @postal_code_ranges end |
#postal_codes ⇒ Array<String>
A postal code representing a city or a set of cities.
- A single postal code (e.g., 12345)
- A postal code prefix followed by a star (e.g., 1234*)
Corresponds to the JSON property
postalCodes
358 359 360 |
# File 'generated/google/apis/content_v2/classes.rb', line 358 def postal_codes @postal_codes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
365 366 367 368 369 370 371 |
# File 'generated/google/apis/content_v2/classes.rb', line 365 def update!(**args) @country = args[:country] if args.key?(:country) @location_ids = args[:location_ids] if args.key?(:location_ids) @name = args[:name] if args.key?(:name) @postal_code_ranges = args[:postal_code_ranges] if args.key?(:postal_code_ranges) @postal_codes = args[:postal_codes] if args.key?(:postal_codes) end |