Class: Google::Apis::ContentV2::InventoryPickup

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ InventoryPickup

Returns a new instance of InventoryPickup.



3119
3120
3121
# File 'generated/google/apis/content_v2/classes.rb', line 3119

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#pickup_methodString

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

Returns:

  • (String)


3110
3111
3112
# File 'generated/google/apis/content_v2/classes.rb', line 3110

def pickup_method
  @pickup_method
end

#pickup_slaString

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

Returns:

  • (String)


3117
3118
3119
# File 'generated/google/apis/content_v2/classes.rb', line 3117

def pickup_sla
  @pickup_sla
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3124
3125
3126
3127
# File 'generated/google/apis/content_v2/classes.rb', line 3124

def update!(**args)
  @pickup_method = args[:pickup_method] if args.key?(:pickup_method)
  @pickup_sla = args[:pickup_sla] if args.key?(:pickup_sla)
end