Class: Google::Apis::ContentV2_1::ProductDeliveryTimeAreaDeliveryTimeDeliveryTime

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

A delivery time for this product.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProductDeliveryTimeAreaDeliveryTimeDeliveryTime

Returns a new instance of ProductDeliveryTimeAreaDeliveryTimeDeliveryTime.



9533
9534
9535
# File 'lib/google/apis/content_v2_1/classes.rb', line 9533

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

Instance Attribute Details

#max_handling_time_daysFixnum

Required. The maximum number of business days (inclusive) between when an order is placed and when the product ships. If a product ships in the same day, set this value to 0. Corresponds to the JSON property maxHandlingTimeDays

Returns:

  • (Fixnum)


9512
9513
9514
# File 'lib/google/apis/content_v2_1/classes.rb', line 9512

def max_handling_time_days
  @max_handling_time_days
end

#max_transit_time_daysFixnum

Required. The maximum number of business days (inclusive) between when the product ships and when the product is delivered. Corresponds to the JSON property maxTransitTimeDays

Returns:

  • (Fixnum)


9518
9519
9520
# File 'lib/google/apis/content_v2_1/classes.rb', line 9518

def max_transit_time_days
  @max_transit_time_days
end

#min_handling_time_daysFixnum

Required. The minimum number of business days (inclusive) between when an order is placed and when the product ships. If a product ships in the same day, set this value to 0. Corresponds to the JSON property minHandlingTimeDays

Returns:

  • (Fixnum)


9525
9526
9527
# File 'lib/google/apis/content_v2_1/classes.rb', line 9525

def min_handling_time_days
  @min_handling_time_days
end

#min_transit_time_daysFixnum

Required. The minimum number of business days (inclusive) between when the product ships and when the product is delivered. Corresponds to the JSON property minTransitTimeDays

Returns:

  • (Fixnum)


9531
9532
9533
# File 'lib/google/apis/content_v2_1/classes.rb', line 9531

def min_transit_time_days
  @min_transit_time_days
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9538
9539
9540
9541
9542
9543
# File 'lib/google/apis/content_v2_1/classes.rb', line 9538

def update!(**args)
  @max_handling_time_days = args[:max_handling_time_days] if args.key?(:max_handling_time_days)
  @max_transit_time_days = args[:max_transit_time_days] if args.key?(:max_transit_time_days)
  @min_handling_time_days = args[:min_handling_time_days] if args.key?(:min_handling_time_days)
  @min_transit_time_days = args[:min_transit_time_days] if args.key?(:min_transit_time_days)
end