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.



9605
9606
9607
# File 'lib/google/apis/content_v2_1/classes.rb', line 9605

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)


9584
9585
9586
# File 'lib/google/apis/content_v2_1/classes.rb', line 9584

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)


9590
9591
9592
# File 'lib/google/apis/content_v2_1/classes.rb', line 9590

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)


9597
9598
9599
# File 'lib/google/apis/content_v2_1/classes.rb', line 9597

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)


9603
9604
9605
# File 'lib/google/apis/content_v2_1/classes.rb', line 9603

def min_transit_time_days
  @min_transit_time_days
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9610
9611
9612
9613
9614
9615
# File 'lib/google/apis/content_v2_1/classes.rb', line 9610

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