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:
- 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
Local inventory resource. For accepted attribute values, see the local product inventory feed specification.
Instance Attribute Summary collapse
-
#availability ⇒ String
Availability of the product.
-
#instore_product_location ⇒ String
In-store product location.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#pickup_method ⇒ String
Supported pickup method for this offer.
-
#pickup_sla ⇒ String
Expected date that an order will be ready for pickup relative to the order date.
-
#price ⇒ Google::Apis::ContentV2_1::Price
Price of the product.
-
#quantity ⇒ Fixnum
Quantity of the product.
-
#sale_price ⇒ Google::Apis::ContentV2_1::Price
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.
3946 3947 3948 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3946 def initialize(**args) update!(**args) end |
Instance Attribute Details
#availability ⇒ String
Availability of the product. For accepted attribute values, see the local
product inventory feed specification.
Corresponds to the JSON property availability
3893 3894 3895 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3893 def availability @availability end |
#instore_product_location ⇒ String
In-store product location.
Corresponds to the JSON property instoreProductLocation
3898 3899 3900 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3898 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
3904 3905 3906 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3904 def kind @kind end |
#pickup_method ⇒ String
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
3911 3912 3913 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3911 def pickup_method @pickup_method end |
#pickup_sla ⇒ String
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
3918 3919 3920 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3918 def pickup_sla @pickup_sla end |
#price ⇒ Google::Apis::ContentV2_1::Price
Price of the product.
Corresponds to the JSON property price
3923 3924 3925 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3923 def price @price end |
#quantity ⇒ Fixnum
Quantity of the product. Must be nonnegative.
Corresponds to the JSON property quantity
3928 3929 3930 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3928 def quantity @quantity end |
#sale_price ⇒ Google::Apis::ContentV2_1::Price
Sale price of the product. Mandatory if sale_price_effective_date is defined.
Corresponds to the JSON property salePrice
3933 3934 3935 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3933 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
3939 3940 3941 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3939 def sale_price_effective_date @sale_price_effective_date end |
#store_code ⇒ String
Required. Store code of this local inventory resource.
Corresponds to the JSON property storeCode
3944 3945 3946 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3944 def store_code @store_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 3951 def update!(**args) @availability = args[:availability] if args.key?(:availability) @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 |