Class: Google::Apis::ContentV2_1::DeliveryTime
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::DeliveryTime
- 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
-
#cutoff_time ⇒ Google::Apis::ContentV2_1::CutoffTime
Business days cutoff time definition.
-
#handling_business_day_config ⇒ Google::Apis::ContentV2_1::BusinessDayConfig
The business days during which orders can be handled.
-
#holiday_cutoffs ⇒ Array<Google::Apis::ContentV2_1::HolidayCutoff>
Holiday cutoff definitions.
-
#max_handling_time_in_days ⇒ Fixnum
Maximum number of business days spent before an order is shipped.
-
#max_transit_time_in_days ⇒ Fixnum
Maximum number of business days that is spent in transit.
-
#min_handling_time_in_days ⇒ Fixnum
Minimum number of business days spent before an order is shipped.
-
#min_transit_time_in_days ⇒ Fixnum
Minimum number of business days that is spent in transit.
-
#transit_business_day_config ⇒ Google::Apis::ContentV2_1::BusinessDayConfig
The business days during which orders can be in-transit.
-
#transit_time_table ⇒ Google::Apis::ContentV2_1::TransitTable
Transit time table, number of business days spent in transit based on row and column dimensions.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeliveryTime
constructor
A new instance of DeliveryTime.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ DeliveryTime
Returns a new instance of DeliveryTime.
2379 2380 2381 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 2379 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cutoff_time ⇒ Google::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
2325 2326 2327 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 2325 def cutoff_time @cutoff_time end |
#handling_business_day_config ⇒ Google::Apis::ContentV2_1::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
2331 2332 2333 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 2331 def handling_business_day_config @handling_business_day_config end |
#holiday_cutoffs ⇒ Array<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
2337 2338 2339 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 2337 def holiday_cutoffs @holiday_cutoffs end |
#max_handling_time_in_days ⇒ Fixnum
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
2344 2345 2346 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 2344 def max_handling_time_in_days @max_handling_time_in_days end |
#max_transit_time_in_days ⇒ Fixnum
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
2351 2352 2353 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 2351 def max_transit_time_in_days @max_transit_time_in_days end |
#min_handling_time_in_days ⇒ Fixnum
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
2357 2358 2359 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 2357 def min_handling_time_in_days @min_handling_time_in_days end |
#min_transit_time_in_days ⇒ Fixnum
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
2364 2365 2366 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 2364 def min_transit_time_in_days @min_transit_time_in_days end |
#transit_business_day_config ⇒ Google::Apis::ContentV2_1::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
2370 2371 2372 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 2370 def transit_business_day_config @transit_business_day_config end |
#transit_time_table ⇒ Google::Apis::ContentV2_1::TransitTable
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
2377 2378 2379 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 2377 def transit_time_table @transit_time_table end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 2384 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) end |