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



361
362
363
# File 'generated/google/apis/content_v2/classes.rb', line 361

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)


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

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


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

def location_ids
  @location_ids
end

#nameString

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

Returns:

  • (String)


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

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



352
353
354
# File 'generated/google/apis/content_v2/classes.rb', line 352

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


359
360
361
# File 'generated/google/apis/content_v2/classes.rb', line 359

def postal_codes
  @postal_codes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



366
367
368
369
370
371
372
# File 'generated/google/apis/content_v2/classes.rb', line 366

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