Class: Google::Apis::ContentV2_1::RegionPostalCodeArea
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::RegionPostalCodeArea
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/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
-
#postal_codes ⇒ Array<Google::Apis::ContentV2_1::RegionPostalCodeAreaPostalCodeRange>
Required.
-
#region_code ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RegionPostalCodeArea
constructor
A new instance of RegionPostalCodeArea.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RegionPostalCodeArea
Returns a new instance of RegionPostalCodeArea.
10679 10680 10681 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 10679 def initialize(**args) update!(**args) end |
Instance Attribute Details
#postal_codes ⇒ Array<Google::Apis::ContentV2_1::RegionPostalCodeAreaPostalCodeRange>
Required. A range of postal codes.
Corresponds to the JSON property postalCodes
10672 10673 10674 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 10672 def postal_codes @postal_codes end |
#region_code ⇒ String
Required. CLDR territory code or the country the postal code group applies to.
Corresponds to the JSON property regionCode
10677 10678 10679 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 10677 def region_code @region_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10684 10685 10686 10687 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 10684 def update!(**args) @postal_codes = args[:postal_codes] if args.key?(:postal_codes) @region_code = args[:region_code] if args.key?(:region_code) end |