Class: Google::Apis::ContentV2_1::Region
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::Region
- 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
Represents a geographic region that you can use as a target with both the
RegionalInventory
and ShippingSettings
services. You can define regions as
collections of either postal codes or, in some countries, using predefined
geotargets.
Instance Attribute Summary collapse
-
#display_name ⇒ String
The display name of the region.
-
#geotarget_area ⇒ Google::Apis::ContentV2_1::RegionGeoTargetArea
A list of geotargets that defines the region area.
-
#merchant_id ⇒ Fixnum
Output only.
-
#postal_code_area ⇒ Google::Apis::ContentV2_1::RegionPostalCodeArea
A list of postal codes that defines the region area.
-
#region_id ⇒ String
Output only.
-
#regional_inventory_eligible ⇒ Boolean
(also: #regional_inventory_eligible?)
Output only.
-
#shipping_eligible ⇒ Boolean
(also: #shipping_eligible?)
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Region
constructor
A new instance of Region.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Region
Returns a new instance of Region.
11660 11661 11662 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11660 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
The display name of the region.
Corresponds to the JSON property displayName
11622 11623 11624 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11622 def display_name @display_name end |
#geotarget_area ⇒ Google::Apis::ContentV2_1::RegionGeoTargetArea
A list of geotargets that defines the region area.
Corresponds to the JSON property geotargetArea
11627 11628 11629 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11627 def geotarget_area @geotarget_area end |
#merchant_id ⇒ Fixnum
Output only. Immutable. Merchant that owns the region.
Corresponds to the JSON property merchantId
11632 11633 11634 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11632 def merchant_id @merchant_id end |
#postal_code_area ⇒ Google::Apis::ContentV2_1::RegionPostalCodeArea
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.
Corresponds to the JSON property postalCodeArea
11639 11640 11641 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11639 def postal_code_area @postal_code_area end |
#region_id ⇒ String
Output only. Immutable. The ID uniquely identifying each region.
Corresponds to the JSON property regionId
11644 11645 11646 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11644 def region_id @region_id end |
#regional_inventory_eligible ⇒ Boolean Also known as: regional_inventory_eligible?
Output only. Indicates if the region is eligible to use in the Regional
Inventory configuration.
Corresponds to the JSON property regionalInventoryEligible
11650 11651 11652 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11650 def regional_inventory_eligible @regional_inventory_eligible end |
#shipping_eligible ⇒ Boolean Also known as: shipping_eligible?
Output only. Indicates if the region is eligible to use in the Shipping
Services configuration.
Corresponds to the JSON property shippingEligible
11657 11658 11659 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11657 def shipping_eligible @shipping_eligible end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11665 11666 11667 11668 11669 11670 11671 11672 11673 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 11665 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @geotarget_area = args[:geotarget_area] if args.key?(:geotarget_area) @merchant_id = args[:merchant_id] if args.key?(:merchant_id) @postal_code_area = args[:postal_code_area] if args.key?(:postal_code_area) @region_id = args[:region_id] if args.key?(:region_id) @regional_inventory_eligible = args[:regional_inventory_eligible] if args.key?(:regional_inventory_eligible) @shipping_eligible = args[:shipping_eligible] if args.key?(:shipping_eligible) end |