Class: Google::Apis::ContentV2_1::LocalInventory
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::LocalInventory
- 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
Local inventory resource. For accepted attribute values, see the local product inventory feed specification.
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.
-
#instore_product_location ⇒ String
The in-store product location.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#pickup_method ⇒ String
The supported pickup method for this offer.
-
#pickup_sla ⇒ String
The expected date that an order will be ready for pickup relative to the order date.
-
#price ⇒ Google::Apis::ContentV2_1::Price
The price of the product.
-
#quantity ⇒ Fixnum
The quantity of the product.
-
#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.
-
#store_code ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LocalInventory
constructor
A new instance of LocalInventory.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LocalInventory
Returns a new instance of LocalInventory.
6607 6608 6609 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6607 def initialize(**args) update!(**args) end |
Instance Attribute Details
#availability ⇒ String
The availability of the product. For accepted attribute values, see the local
product inventory feed specification.
Corresponds to the JSON property availability
6546 6547 6548 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6546 def availability @availability end |
#custom_attributes ⇒ Array<Google::Apis::ContentV2_1::CustomAttribute>
A list of custom (merchant-provided) attributes. Can also be used to submit
any attribute of the feed specification in its generic form, for example, "
name": "size type", "value": "regular".
Corresponds to the JSON property customAttributes
6553 6554 6555 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6553 def custom_attributes @custom_attributes end |
#instore_product_location ⇒ String
The in-store product location.
Corresponds to the JSON property instoreProductLocation
6558 6559 6560 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6558 def instore_product_location @instore_product_location end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "content#
localInventory"
Corresponds to the JSON property kind
6564 6565 6566 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6564 def kind @kind end |
#pickup_method ⇒ String
The supported pickup method for this offer. Unless the value is "not supported"
, this field must be submitted together with pickupSla. For accepted
attribute values, see the local product inventory feed specification.
Corresponds to the JSON property pickupMethod
6571 6572 6573 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6571 def pickup_method @pickup_method end |
#pickup_sla ⇒ String
The expected date that an order will be ready for pickup relative to the order
date. Must be submitted together with pickupMethod. For accepted attribute
values, see the local product inventory feed specification.
Corresponds to the JSON property pickupSla
6578 6579 6580 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6578 def pickup_sla @pickup_sla end |
#price ⇒ Google::Apis::ContentV2_1::Price
The price of the product.
Corresponds to the JSON property price
6583 6584 6585 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6583 def price @price end |
#quantity ⇒ Fixnum
The quantity of the product. Must be nonnegative.
Corresponds to the JSON property quantity
6588 6589 6590 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6588 def quantity @quantity 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
6594 6595 6596 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6594 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 may be specified as 'null' if undecided.
Corresponds to the JSON property salePriceEffectiveDate
6600 6601 6602 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6600 def sale_price_effective_date @sale_price_effective_date end |
#store_code ⇒ String
Required. The store code of this local inventory resource.
Corresponds to the JSON property storeCode
6605 6606 6607 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6605 def store_code @store_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6612 def update!(**args) @availability = args[:availability] if args.key?(:availability) @custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes) @instore_product_location = args[:instore_product_location] if args.key?(:instore_product_location) @kind = args[:kind] if args.key?(:kind) @pickup_method = args[:pickup_method] if args.key?(:pickup_method) @pickup_sla = args[:pickup_sla] if args.key?(:pickup_sla) @price = args[:price] if args.key?(:price) @quantity = args[:quantity] if args.key?(:quantity) @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) @store_code = args[:store_code] if args.key?(:store_code) end |