Class: Google::Apis::ContentV2_1::RegionalInventory
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::RegionalInventory
- 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
Regional inventory resource. contains the regional name and all attributes which are overridden for the specified region.
Instance Attribute Summary collapse
-
#availability ⇒ String
The availability of the product.
-
#custom_attributes ⇒ Array<Google::Apis::ContentV2_1::CustomAttribute>
A list of custom (merchant-provided) attributes.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#price ⇒ Google::Apis::ContentV2_1::Price
The price of the product.
-
#region_id ⇒ String
The ID (name) of the region.
-
#sale_price ⇒ Google::Apis::ContentV2_1::Price
The sale price of the product.
-
#sale_price_effective_date ⇒ String
A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RegionalInventory
constructor
A new instance of RegionalInventory.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ RegionalInventory
Returns a new instance of RegionalInventory
7996 7997 7998 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 7996 def initialize(**args) update!(**args) end |
Instance Attribute Details
#availability ⇒ String
The availability of the product.
Corresponds to the JSON property availability
7960 7961 7962 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 7960 def availability @availability end |
#custom_attributes ⇒ Array<Google::Apis::ContentV2_1::CustomAttribute>
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
7966 7967 7968 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 7966 def custom_attributes @custom_attributes end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "content#
regionalInventory".
Corresponds to the JSON property kind
7972 7973 7974 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 7972 def kind @kind end |
#price ⇒ Google::Apis::ContentV2_1::Price
The price of the product.
Corresponds to the JSON property price
7977 7978 7979 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 7977 def price @price end |
#region_id ⇒ String
The ID (name) of the region.
Corresponds to the JSON property regionId
7982 7983 7984 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 7982 def region_id @region_id end |
#sale_price ⇒ Google::Apis::ContentV2_1::Price
The sale price of the product. Mandatory if sale_price_effective_date is
defined.
Corresponds to the JSON property salePrice
7988 7989 7990 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 7988 def sale_price @sale_price end |
#sale_price_effective_date ⇒ String
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
7994 7995 7996 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 7994 def sale_price_effective_date @sale_price_effective_date end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8001 8002 8003 8004 8005 8006 8007 8008 8009 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8001 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 |