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.



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

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



13448
13449
13450
# File 'lib/google/apis/content_v2_1/classes.rb', line 13448

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



13453
13454
13455
# File 'lib/google/apis/content_v2_1/classes.rb', line 13453

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>)


13460
13461
13462
# File 'lib/google/apis/content_v2_1/classes.rb', line 13460

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)


13466
13467
13468
# File 'lib/google/apis/content_v2_1/classes.rb', line 13466

def store_service_type
  @store_service_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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