class Google::Apis::ContentV2::AccountShippingLocationGroup
A user-defined locations group in a given country. All the locations of the group must be of the same type.
Attributes
The CLDR territory code of the country in which this location group is. Corresponds to the JSON property `country` @return [String]
A location ID (also called criteria ID) representing administrative areas, smaller country subdivisions (counties), or cities. Corresponds to the JSON property `locationIds` @return [Array<String>]
The name of the location group. Corresponds to the JSON property `name` @return [String]
A postal code range representing a city or a set of cities. Corresponds to the JSON property `postalCodeRanges` @return [Array<Google::Apis::ContentV2::AccountShippingPostalCodeRange>]
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` @return [Array<String>]
Public Class Methods
# File generated/google/apis/content_v2/classes.rb, line 360 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# 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