class Google::Apis::ContentV2_1::DeliveryTime

Attributes

cutoff_time[RW]

Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST. Corresponds to the JSON property `cutoffTime` @return [Google::Apis::ContentV2_1::CutoffTime]

handling_business_day_config[RW]

The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed. Corresponds to the JSON property `handlingBusinessDayConfig` @return [Google::Apis::ContentV2_1::BusinessDayConfig]

holiday_cutoffs[RW]

Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping. Corresponds to the JSON property `holidayCutoffs` @return [Array<Google::Apis::ContentV2_1::HolidayCutoff>]

max_handling_time_in_days[RW]

Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to ` minHandlingTimeInDays`. Corresponds to the JSON property `maxHandlingTimeInDays` @return [Fixnum]

max_transit_time_in_days[RW]

Maximum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Must be greater than or equal to ` minTransitTimeInDays`. Corresponds to the JSON property `maxTransitTimeInDays` @return [Fixnum]

min_handling_time_in_days[RW]

Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Corresponds to the JSON property `minHandlingTimeInDays` @return [Fixnum]

min_transit_time_in_days[RW]

Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either “min,max`TransitTimeInDays` or ` transitTimeTable` must be set, but not both. Corresponds to the JSON property `minTransitTimeInDays` @return [Fixnum]

transit_business_day_config[RW]

The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed. Corresponds to the JSON property `transitBusinessDayConfig` @return [Google::Apis::ContentV2_1::BusinessDayConfig]

transit_time_table[RW]

Transit time table, number of business days spent in transit based on row and column dimensions. Either “min,max`TransitTimeInDays` or `transitTimeTable` can be set, but not both. Corresponds to the JSON property `transitTimeTable` @return [Google::Apis::ContentV2_1::TransitTable]

warehouse_based_delivery_times[RW]

Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in DeliveryTime should be set. Corresponds to the JSON property `warehouseBasedDeliveryTimes` @return [Array<Google::Apis::ContentV2_1::WarehouseBasedDeliveryTime>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2_1/classes.rb, line 3167
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2_1/classes.rb, line 3172
def update!(**args)
  @cutoff_time = args[:cutoff_time] if args.key?(:cutoff_time)
  @handling_business_day_config = args[:handling_business_day_config] if args.key?(:handling_business_day_config)
  @holiday_cutoffs = args[:holiday_cutoffs] if args.key?(:holiday_cutoffs)
  @max_handling_time_in_days = args[:max_handling_time_in_days] if args.key?(:max_handling_time_in_days)
  @max_transit_time_in_days = args[:max_transit_time_in_days] if args.key?(:max_transit_time_in_days)
  @min_handling_time_in_days = args[:min_handling_time_in_days] if args.key?(:min_handling_time_in_days)
  @min_transit_time_in_days = args[:min_transit_time_in_days] if args.key?(:min_transit_time_in_days)
  @transit_business_day_config = args[:transit_business_day_config] if args.key?(:transit_business_day_config)
  @transit_time_table = args[:transit_time_table] if args.key?(:transit_time_table)
  @warehouse_based_delivery_times = args[:warehouse_based_delivery_times] if args.key?(:warehouse_based_delivery_times)
end