Class: Google::Apis::ContentV2_1::ServiceStoreConfigCutoffConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ServiceStoreConfigCutoffConfig

Returns a new instance of ServiceStoreConfigCutoffConfig.



13518
13519
13520
# File 'lib/google/apis/content_v2_1/classes.rb', line 13518

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#local_cutoff_timeGoogle::Apis::ContentV2_1::ServiceStoreConfigCutoffConfigLocalCutoffTime

Time in hours and minutes in the local timezone when local delivery ends. Corresponds to the JSON property localCutoffTime



13498
13499
13500
# File 'lib/google/apis/content_v2_1/classes.rb', line 13498

def local_cutoff_time
  @local_cutoff_time
end

#no_delivery_post_cutoffBoolean 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

Returns:

  • (Boolean)


13509
13510
13511
# File 'lib/google/apis/content_v2_1/classes.rb', line 13509

def no_delivery_post_cutoff
  @no_delivery_post_cutoff
end

#store_close_offset_hoursFixnum

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

Returns:

  • (Fixnum)


13516
13517
13518
# File 'lib/google/apis/content_v2_1/classes.rb', line 13516

def store_close_offset_hours
  @store_close_offset_hours
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13523
13524
13525
13526
13527
# File 'lib/google/apis/content_v2_1/classes.rb', line 13523

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