Class: Google::Apis::ContentV2_1::ServiceStoreConfig
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ServiceStoreConfig
- 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
Stores that provide local delivery. Only valid with local delivery fulfillment.
Instance Attribute Summary collapse
-
#cutoff_config ⇒ Google::Apis::ContentV2_1::ServiceStoreConfigCutoffConfig
Time local delivery ends for the day based on the local timezone of the store.
-
#service_radius ⇒ Google::Apis::ContentV2_1::Distance
Distance represented by an integer and unit.
-
#store_codes ⇒ Array<String>
A list of store codes that provide local delivery.
-
#store_service_type ⇒ String
Indicates whether all stores listed by this merchant provide local delivery or not.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceStoreConfig
constructor
A new instance of ServiceStoreConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ServiceStoreConfig
Returns a new instance of ServiceStoreConfig.
13069 13070 13071 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 13069 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cutoff_config ⇒ Google::Apis::ContentV2_1::ServiceStoreConfigCutoffConfig
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.
Corresponds to the JSON property cutoffConfig
13049 13050 13051 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 13049 def cutoff_config @cutoff_config end |
#service_radius ⇒ Google::Apis::ContentV2_1::Distance
Distance represented by an integer and unit.
Corresponds to the JSON property serviceRadius
13054 13055 13056 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 13054 def service_radius @service_radius end |
#store_codes ⇒ Array<String>
A list of store codes that provide local delivery. If empty, then
store_service_type must be all_stores, or an error is thrown. If not empty,
then store_service_type must be selected_stores, or an error is thrown.
Corresponds to the JSON property storeCodes
13061 13062 13063 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 13061 def store_codes @store_codes end |
#store_service_type ⇒ String
Indicates whether all stores listed by this merchant provide local delivery or
not. Acceptable values are all stores and selected stores
Corresponds to the JSON property storeServiceType
13067 13068 13069 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 13067 def store_service_type @store_service_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13074 13075 13076 13077 13078 13079 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 13074 def update!(**args) @cutoff_config = args[:cutoff_config] if args.key?(:cutoff_config) @service_radius = args[:service_radius] if args.key?(:service_radius) @store_codes = args[:store_codes] if args.key?(:store_codes) @store_service_type = args[:store_service_type] if args.key?(:store_service_type) end |