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
-
#holiday_cutoffs ⇒ Array<Google::Apis::ContentV2::HolidayCutoff>
Holiday cutoff definitions.
-
#max_transit_time_in_days ⇒ Fixnum
Maximum number of business days that is spent in transit.
-
#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
1889 1890 1891 |
# File 'generated/google/apis/content_v2/classes.rb', line 1889 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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
1874 1875 1876 |
# File 'generated/google/apis/content_v2/classes.rb', line 1874 def holiday_cutoffs @holiday_cutoffs 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
1881 1882 1883 |
# File 'generated/google/apis/content_v2/classes.rb', line 1881 def max_transit_time_in_days @max_transit_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
1887 1888 1889 |
# File 'generated/google/apis/content_v2/classes.rb', line 1887 def min_transit_time_in_days @min_transit_time_in_days end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1894 1895 1896 1897 1898 |
# File 'generated/google/apis/content_v2/classes.rb', line 1894 def update!(**args) @holiday_cutoffs = args[:holiday_cutoffs] if args.key?(:holiday_cutoffs) @max_transit_time_in_days = args[:max_transit_time_in_days] if args.key?(:max_transit_time_in_days) @min_transit_time_in_days = args[:min_transit_time_in_days] if args.key?(:min_transit_time_in_days) end |