Class: Google::Apis::ContentV2_1::ProductDeliveryTime

Inherits:
Object
  • Object
show all
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

The estimated days to deliver a product after an order is placed. Only authorized shipping signals partners working with a merchant can use this resource. Merchants should use the products resource instead.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProductDeliveryTime

Returns a new instance of ProductDeliveryTime.



9466
9467
9468
# File 'lib/google/apis/content_v2_1/classes.rb', line 9466

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

Instance Attribute Details

#area_delivery_timesArray<Google::Apis::ContentV2_1::ProductDeliveryTimeAreaDeliveryTime>

Required. A set of associations between DeliveryArea and DeliveryTime entries. The total number of areaDeliveryTimes can be at most 100. Corresponds to the JSON property areaDeliveryTimes



9459
9460
9461
# File 'lib/google/apis/content_v2_1/classes.rb', line 9459

def area_delivery_times
  @area_delivery_times
end

#product_idGoogle::Apis::ContentV2_1::ProductId

The Content API ID of the product. Corresponds to the JSON property productId



9464
9465
9466
# File 'lib/google/apis/content_v2_1/classes.rb', line 9464

def product_id
  @product_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9471
9472
9473
9474
# File 'lib/google/apis/content_v2_1/classes.rb', line 9471

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