Class: Google::Apis::ContentV2_1::RegionPostalCodeArea

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb

Overview

A list of postal codes that defines the region area. Note: All regions defined using postal codes are accessible via the account's ShippingSettings. postalCodeGroups resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RegionPostalCodeArea

Returns a new instance of RegionPostalCodeArea.



11713
11714
11715
# File 'lib/google/apis/content_v2_1/classes.rb', line 11713

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#postal_codesArray<Google::Apis::ContentV2_1::RegionPostalCodeAreaPostalCodeRange>

Required. A range of postal codes. Corresponds to the JSON property postalCodes



11706
11707
11708
# File 'lib/google/apis/content_v2_1/classes.rb', line 11706

def postal_codes
  @postal_codes
end

#region_codeString

Required. CLDR territory code or the country the postal code group applies to. Corresponds to the JSON property regionCode

Returns:

  • (String)


11711
11712
11713
# File 'lib/google/apis/content_v2_1/classes.rb', line 11711

def region_code
  @region_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11718
11719
11720
11721
# File 'lib/google/apis/content_v2_1/classes.rb', line 11718

def update!(**args)
  @postal_codes = args[:postal_codes] if args.key?(:postal_codes)
  @region_code = args[:region_code] if args.key?(:region_code)
end