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.



9542
9543
9544
# File 'lib/google/apis/content_v2_1/classes.rb', line 9542

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)


9521
9522
9523
# File 'lib/google/apis/content_v2_1/classes.rb', line 9521

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)


9527
9528
9529
# File 'lib/google/apis/content_v2_1/classes.rb', line 9527

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)


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

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)


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

def min_transit_time_days
  @min_transit_time_days
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9547
9548
9549
9550
9551
9552
# File 'lib/google/apis/content_v2_1/classes.rb', line 9547

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