Class: Google::Apis::ContentV2::InventoryPickup
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::InventoryPickup
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2/classes.rb,
lib/google/apis/content_v2/representations.rb,
lib/google/apis/content_v2/representations.rb
Instance Attribute Summary collapse
-
#pickup_method ⇒ String
Whether store pickup is available for this offer and whether the pickup option should be shown as buy, reserve, or not supported.
-
#pickup_sla ⇒ String
The expected date that an order will be ready for pickup, relative to when the order is placed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InventoryPickup
constructor
A new instance of InventoryPickup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InventoryPickup
Returns a new instance of InventoryPickup.
3175 3176 3177 |
# File 'lib/google/apis/content_v2/classes.rb', line 3175 def initialize(**args) update!(**args) end |
Instance Attribute Details
#pickup_method ⇒ String
Whether store pickup is available for this offer and whether the pickup option
should be shown as buy, reserve, or not supported. Only supported for local
inventory. Unless the value is "not supported", must be submitted together
with pickupSla. Acceptable values are: - "buy" - "not supported" - "
reserve" - "ship to store"
Corresponds to the JSON property pickupMethod
3164 3165 3166 |
# File 'lib/google/apis/content_v2/classes.rb', line 3164 def pickup_method @pickup_method end |
#pickup_sla ⇒ String
The expected date that an order will be ready for pickup, relative to when the
order is placed. Only supported for local inventory. Must be submitted
together with pickupMethod. Acceptable values are: - "five day" - "four
day" - "multi day" - "multi week" - "next day" - "same day" - "seven
day" - "six day" - "three day" - "two day"
Corresponds to the JSON property pickupSla
3173 3174 3175 |
# File 'lib/google/apis/content_v2/classes.rb', line 3173 def pickup_sla @pickup_sla end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3180 3181 3182 3183 |
# File 'lib/google/apis/content_v2/classes.rb', line 3180 def update!(**args) @pickup_method = args[:pickup_method] if args.key?(:pickup_method) @pickup_sla = args[:pickup_sla] if args.key?(:pickup_sla) end |