Class: Google::Apis::ContentV2_1::DeliveryTime
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::DeliveryTime
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/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 are 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 are 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.
-
#warehouse_based_delivery_times ⇒ Array<Google::Apis::ContentV2_1::WarehouseBasedDeliveryTime>
Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeliveryTime
constructor
A new instance of DeliveryTime.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DeliveryTime
Returns a new instance of DeliveryTime.
4679 4680 4681 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4679 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. If local delivery, use Service.StoreConfig.
CutoffConfig.
Corresponds to the JSON property cutoffTime
4618 4619 4620 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4618 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
4624 4625 4626 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4624 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
4630 4631 4632 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4630 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
4637 4638 4639 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4637 def max_handling_time_in_days @max_handling_time_in_days end |
#max_transit_time_in_days ⇒ Fixnum
Maximum number of business days that are 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
4644 4645 4646 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4644 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
4650 4651 4652 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4650 def min_handling_time_in_days @min_handling_time_in_days end |
#min_transit_time_in_days ⇒ Fixnum
Minimum number of business days that are 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`
4657 4658 4659 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4657 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
4663 4664 4665 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4663 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,maxTransitTimeInDaysortransitTimeTable
can be set, but not both.
Corresponds to the JSON propertytransitTimeTable`
4670 4671 4672 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4670 def transit_time_table @transit_time_table end |
#warehouse_based_delivery_times ⇒ Array<Google::Apis::ContentV2_1::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
4677 4678 4679 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4677 def warehouse_based_delivery_times @warehouse_based_delivery_times end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 4684 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 |