class Google::Apis::ContentV2_1::RegionalInventory
Regional inventory resource. contains the regional name and all attributes which are overridden for the specified region.
Attributes
The availability of the product. Corresponds to the JSON property `availability` @return [String]
A list of custom (merchant-provided) attributes. It can also be used for submitting any attribute of the feed specification in its generic form. Corresponds to the JSON property `customAttributes` @return [Array<Google::Apis::ContentV2_1::CustomAttribute>]
Identifies what kind of resource this is. Value: the fixed string “`content# regionalInventory`”. Corresponds to the JSON property `kind` @return [String]
The price of the product. Corresponds to the JSON property `price` @return [Google::Apis::ContentV2_1::Price]
The ID uniquely identifying each region. Corresponds to the JSON property `regionId` @return [String]
The sale price of the product. Mandatory if `sale_price_effective_date` is defined. Corresponds to the JSON property `salePrice` @return [Google::Apis::ContentV2_1::Price]
A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash. Both dates might be specified as 'null' if undecided. Corresponds to the JSON property `salePriceEffectiveDate` @return [String]
Public Class Methods
# File lib/google/apis/content_v2_1/classes.rb, line 12043 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/content_v2_1/classes.rb, line 12048 def update!(**args) @availability = args[:availability] if args.key?(:availability) @custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes) @kind = args[:kind] if args.key?(:kind) @price = args[:price] if args.key?(:price) @region_id = args[:region_id] if args.key?(:region_id) @sale_price = args[:sale_price] if args.key?(:sale_price) @sale_price_effective_date = args[:sale_price_effective_date] if args.key?(:sale_price_effective_date) end