class Google::Apis::ContentV2_1::Region

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.

Attributes

display_name[RW]

The display name of the region. Corresponds to the JSON property `displayName` @return [String]

geotarget_area[RW]

A list of geotargets that defines the region area. Corresponds to the JSON property `geotargetArea` @return [Google::Apis::ContentV2_1::RegionGeoTargetArea]

merchant_id[RW]

Output only. Immutable. Merchant that owns the region. Corresponds to the JSON property `merchantId` @return [Fixnum]

postal_code_area[RW]

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` @return [Google::Apis::ContentV2_1::RegionPostalCodeArea]

region_id[RW]

Output only. Immutable. The ID uniquely identifying each region. Corresponds to the JSON property `regionId` @return [String]

regional_inventory_eligible[RW]

Output only. Indicates if the region is eligible to use in the Regional Inventory configuration. Corresponds to the JSON property `regionalInventoryEligible` @return [Boolean]

regional_inventory_eligible?[RW]

Output only. Indicates if the region is eligible to use in the Regional Inventory configuration. Corresponds to the JSON property `regionalInventoryEligible` @return [Boolean]

shipping_eligible[RW]

Output only. Indicates if the region is eligible to use in the Shipping Services configuration. Corresponds to the JSON property `shippingEligible` @return [Boolean]

shipping_eligible?[RW]

Output only. Indicates if the region is eligible to use in the Shipping Services configuration. Corresponds to the JSON property `shippingEligible` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2_1/classes.rb, line 11902
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2_1/classes.rb, line 11907
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