Class: Google::Apis::ContentV2::InventoryPickup
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::InventoryPickup
- Defined in:
- generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/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.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ InventoryPickup
Returns a new instance of InventoryPickup
2434 2435 2436 |
# File 'generated/google/apis/content_v2/classes.rb', line 2434 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.
Corresponds to the JSON property pickupMethod
2425 2426 2427 |
# File 'generated/google/apis/content_v2/classes.rb', line 2425 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.
Corresponds to the JSON property pickupSla
2432 2433 2434 |
# File 'generated/google/apis/content_v2/classes.rb', line 2432 def pickup_sla @pickup_sla end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2439 2440 2441 2442 |
# File 'generated/google/apis/content_v2/classes.rb', line 2439 def update!(**args) @pickup_method = args[:pickup_method] if args.key?(:pickup_method) @pickup_sla = args[:pickup_sla] if args.key?(:pickup_sla) end |