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.



9475
9476
9477
# File 'lib/google/apis/content_v2_1/classes.rb', line 9475

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



9468
9469
9470
# File 'lib/google/apis/content_v2_1/classes.rb', line 9468

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



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

def product_id
  @product_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9480
9481
9482
9483
# File 'lib/google/apis/content_v2_1/classes.rb', line 9480

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