Class: Google::Apis::ContentV2_1::DeliveryTime

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DeliveryTime

Returns a new instance of DeliveryTime



2299
2300
2301
# File 'generated/google/apis/content_v2_1/classes.rb', line 2299

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

Instance Attribute Details

#cutoff_timeGoogle::Apis::ContentV2_1::CutoffTime

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



2257
2258
2259
# File 'generated/google/apis/content_v2_1/classes.rb', line 2257

def cutoff_time
  @cutoff_time
end

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

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



2263
2264
2265
# File 'generated/google/apis/content_v2_1/classes.rb', line 2263

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)


2270
2271
2272
# File 'generated/google/apis/content_v2_1/classes.rb', line 2270

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)


2277
2278
2279
# File 'generated/google/apis/content_v2_1/classes.rb', line 2277

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)


2283
2284
2285
# File 'generated/google/apis/content_v2_1/classes.rb', line 2283

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,maxtransitTimeInDays or transitTimeTable must be set, but not both. Corresponds to the JSON property minTransitTimeInDays

Returns:

  • (Fixnum)


2290
2291
2292
# File 'generated/google/apis/content_v2_1/classes.rb', line 2290

def min_transit_time_in_days
  @min_transit_time_in_days
end

#transit_time_tableGoogle::Apis::ContentV2_1::TransitTable

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



2297
2298
2299
# File 'generated/google/apis/content_v2_1/classes.rb', line 2297

def transit_time_table
  @transit_time_table
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2304
2305
2306
2307
2308
2309
2310
2311
2312
# File 'generated/google/apis/content_v2_1/classes.rb', line 2304

def update!(**args)
  @cutoff_time = args[:cutoff_time] if args.key?(:cutoff_time)
  @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_time_table = args[:transit_time_table] if args.key?(:transit_time_table)
end