Class: Google::Apis::ContentV2::AccountShippingLocationGroup

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

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

#countryString

The CLDR territory code of the country in which this location group is. Corresponds to the JSON property country

Returns:

  • (String)

335
336
337
# File 'generated/google/apis/content_v2/classes.rb', line 335

def country
  @country
end

#location_idsArray<String>

A location ID (also called criteria ID) representing administrative areas, smaller country subdivisions (counties), or cities. Corresponds to the JSON property locationIds

Returns:

  • (Array<String>)

341
342
343
# File 'generated/google/apis/content_v2/classes.rb', line 341

def location_ids
  @location_ids
end

#nameString

The name of the location group. Corresponds to the JSON property name

Returns:

  • (String)

346
347
348
# File 'generated/google/apis/content_v2/classes.rb', line 346

def name
  @name
end

#postal_code_rangesArray<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_codesArray<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

Returns:

  • (Array<String>)

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