Class: Google::Apis::ContentV2::DeliveryTime
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::DeliveryTime
- Defined in:
- generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb
Instance Attribute Summary collapse
-
#cutoff_time ⇒ Google::Apis::ContentV2::CutoffTime
Business days cutoff time definition.
-
#holiday_cutoffs ⇒ Array<Google::Apis::ContentV2::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.
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
2463 2464 2465 |
# File 'generated/google/apis/content_v2/classes.rb', line 2463 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cutoff_time ⇒ Google::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
2429 2430 2431 |
# File 'generated/google/apis/content_v2/classes.rb', line 2429 def cutoff_time @cutoff_time end |
#holiday_cutoffs ⇒ Array<Google::Apis::ContentV2::HolidayCutoff>
Holiday cutoff definitions. If configured, they specify order cutoff times for
holiday-specific shipping.
Corresponds to the JSON property holidayCutoffs
2435 2436 2437 |
# File 'generated/google/apis/content_v2/classes.rb', line 2435 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
2442 2443 2444 |
# File 'generated/google/apis/content_v2/classes.rb', line 2442 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. Required.
Corresponds to the JSON property maxTransitTimeInDays
2449 2450 2451 |
# File 'generated/google/apis/content_v2/classes.rb', line 2449 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
2455 2456 2457 |
# File 'generated/google/apis/content_v2/classes.rb', line 2455 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. Required.
Corresponds to the JSON property minTransitTimeInDays
2461 2462 2463 |
# File 'generated/google/apis/content_v2/classes.rb', line 2461 def min_transit_time_in_days @min_transit_time_in_days end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2468 2469 2470 2471 2472 2473 2474 2475 |
# File 'generated/google/apis/content_v2/classes.rb', line 2468 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) end |