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

country[RW]

The CLDR territory code of the country in which this location group is. Corresponds to the JSON property `country` @return [String]

location_ids[RW]

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>]

name[RW]

The name of the location group. Corresponds to the JSON property `name` @return [String]

postal_code_ranges[RW]

A postal code range representing a city or a set of cities. Corresponds to the JSON property `postalCodeRanges` @return [Array<Google::Apis::ContentV2::AccountShippingPostalCodeRange>]

postal_codes[RW]

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

new(**args) click to toggle source
# File generated/google/apis/content_v2/classes.rb, line 360
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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