Class: Google::Apis::ContentV2::DeliveryTime

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2/classes.rb,
lib/google/apis/content_v2/representations.rb,
lib/google/apis/content_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeliveryTime

Returns a new instance of DeliveryTime.



2629
2630
2631
# File 'lib/google/apis/content_v2/classes.rb', line 2629

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

Instance Attribute Details

#cutoff_timeGoogle::Apis::ContentV2::CutoffTime

Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST. Corresponds to the JSON property cutoffTime



2568
2569
2570
# File 'lib/google/apis/content_v2/classes.rb', line 2568

def cutoff_time
  @cutoff_time
end

#handling_business_day_configGoogle::Apis::ContentV2::BusinessDayConfig

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



2574
2575
2576
# File 'lib/google/apis/content_v2/classes.rb', line 2574

def handling_business_day_config
  @handling_business_day_config
end

#holiday_cutoffsArray<Google::Apis::ContentV2::HolidayCutoff>

Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping. Corresponds to the JSON property holidayCutoffs



2580
2581
2582
# File 'lib/google/apis/content_v2/classes.rb', line 2580

def holiday_cutoffs
  @holiday_cutoffs
end

#max_handling_time_in_daysFixnum

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

Returns:

  • (Fixnum)


2587
2588
2589
# File 'lib/google/apis/content_v2/classes.rb', line 2587

def max_handling_time_in_days
  @max_handling_time_in_days
end

#max_transit_time_in_daysFixnum

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

Returns:

  • (Fixnum)


2594
2595
2596
# File 'lib/google/apis/content_v2/classes.rb', line 2594

def max_transit_time_in_days
  @max_transit_time_in_days
end

#min_handling_time_in_daysFixnum

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

Returns:

  • (Fixnum)


2600
2601
2602
# File 'lib/google/apis/content_v2/classes.rb', line 2600

def min_handling_time_in_days
  @min_handling_time_in_days
end

#min_transit_time_in_daysFixnum

Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either `min,maxTransitTimeInDaysor transitTimeTablemust be set, but not both. Corresponds to the JSON propertyminTransitTimeInDays`

Returns:

  • (Fixnum)


2607
2608
2609
# File 'lib/google/apis/content_v2/classes.rb', line 2607

def min_transit_time_in_days
  @min_transit_time_in_days
end

#transit_business_day_configGoogle::Apis::ContentV2::BusinessDayConfig

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



2613
2614
2615
# File 'lib/google/apis/content_v2/classes.rb', line 2613

def transit_business_day_config
  @transit_business_day_config
end

#transit_time_tableGoogle::Apis::ContentV2::TransitTable

Transit time table, number of business days spent in transit based on row and column dimensions. Either `min,maxTransitTimeInDaysortransitTimeTable can be set, but not both. Corresponds to the JSON propertytransitTimeTable`



2620
2621
2622
# File 'lib/google/apis/content_v2/classes.rb', line 2620

def transit_time_table
  @transit_time_table
end

#warehouse_based_delivery_timesArray<Google::Apis::ContentV2::WarehouseBasedDeliveryTime>

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



2627
2628
2629
# File 'lib/google/apis/content_v2/classes.rb', line 2627

def warehouse_based_delivery_times
  @warehouse_based_delivery_times
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
# File 'lib/google/apis/content_v2/classes.rb', line 2634

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