Class: Google::Apis::ContentV2_1::ServiceStoreConfig

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

Stores that provide local delivery. Only valid with local delivery fulfillment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ServiceStoreConfig

Returns a new instance of ServiceStoreConfig.



13477
13478
13479
# File 'lib/google/apis/content_v2_1/classes.rb', line 13477

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

Instance Attribute Details

#cutoff_configGoogle::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



13457
13458
13459
# File 'lib/google/apis/content_v2_1/classes.rb', line 13457

def cutoff_config
  @cutoff_config
end

#service_radiusGoogle::Apis::ContentV2_1::Distance

Distance represented by an integer and unit. Corresponds to the JSON property serviceRadius



13462
13463
13464
# File 'lib/google/apis/content_v2_1/classes.rb', line 13462

def service_radius
  @service_radius
end

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

Returns:

  • (Array<String>)


13469
13470
13471
# File 'lib/google/apis/content_v2_1/classes.rb', line 13469

def store_codes
  @store_codes
end

#store_service_typeString

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

Returns:

  • (String)


13475
13476
13477
# File 'lib/google/apis/content_v2_1/classes.rb', line 13475

def store_service_type
  @store_service_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13482
13483
13484
13485
13486
13487
# File 'lib/google/apis/content_v2_1/classes.rb', line 13482

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