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.
13515 13516 13517 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 13515 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
13495 13496 13497 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 13495 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
13500 13501 13502 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 13500 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
13507 13508 13509 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 13507 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
13513 13514 13515 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 13513 def store_service_type @store_service_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13520 13521 13522 13523 13524 13525 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 13520 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 |