Class: Google::Apis::ContentV2_1::ServiceStoreConfigCutoffConfig
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ServiceStoreConfigCutoffConfig
- 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
Overview
Time local delivery ends for the day based on the local timezone of the store.
local_cutoff_time and store_close_offset_hours are mutually exclusive.
Instance Attribute Summary collapse
-
#local_cutoff_time ⇒ Google::Apis::ContentV2_1::ServiceStoreConfigCutoffConfigLocalCutoffTime
Time in hours and minutes in the local timezone when local delivery ends.
-
#no_delivery_post_cutoff ⇒ Boolean
(also: #no_delivery_post_cutoff?)
Merchants can opt-out of showing n+1 day local delivery when they have a shipping service configured to n day local delivery.
-
#store_close_offset_hours ⇒ Fixnum
Represents cutoff time as the number of hours before store closing.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceStoreConfigCutoffConfig
constructor
A new instance of ServiceStoreConfigCutoffConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ServiceStoreConfigCutoffConfig
Returns a new instance of ServiceStoreConfigCutoffConfig.
13110 13111 13112 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 13110 def initialize(**args) update!(**args) end |
Instance Attribute Details
#local_cutoff_time ⇒ Google::Apis::ContentV2_1::ServiceStoreConfigCutoffConfigLocalCutoffTime
Time in hours and minutes in the local timezone when local delivery ends.
Corresponds to the JSON property localCutoffTime
13090 13091 13092 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 13090 def local_cutoff_time @local_cutoff_time end |
#no_delivery_post_cutoff ⇒ Boolean Also known as: no_delivery_post_cutoff?
Merchants can opt-out of showing n+1 day local delivery when they have a
shipping service configured to n day local delivery. For example, if the
shipping service defines same-day delivery, and it's past the cut-off, setting
this field to true results in the calculated shipping service rate returning
NO_DELIVERY_POST_CUTOFF. In the same example, setting this field to false
results in the calculated shipping time being one day. This is only for local
delivery.
Corresponds to the JSON property noDeliveryPostCutoff
13101 13102 13103 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 13101 def no_delivery_post_cutoff @no_delivery_post_cutoff end |
#store_close_offset_hours ⇒ Fixnum
Represents cutoff time as the number of hours before store closing. Mutually
exclusive with other fields (hour and minute).
Corresponds to the JSON property storeCloseOffsetHours
13108 13109 13110 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 13108 def store_close_offset_hours @store_close_offset_hours end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13115 13116 13117 13118 13119 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 13115 def update!(**args) @local_cutoff_time = args[:local_cutoff_time] if args.key?(:local_cutoff_time) @no_delivery_post_cutoff = args[:no_delivery_post_cutoff] if args.key?(:no_delivery_post_cutoff) @store_close_offset_hours = args[:store_close_offset_hours] if args.key?(:store_close_offset_hours) end |