Class: Google::Apis::MerchantapiAccountsV1beta::StoreConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/merchantapi_accounts_v1beta/classes.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb

Overview

A list of stores your products are delivered from. This is only valid for the local delivery shipment type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StoreConfig

Returns a new instance of StoreConfig.



2518
2519
2520
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2518

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

Instance Attribute Details

#cutoff_configGoogle::Apis::MerchantapiAccountsV1beta::CutoffConfig

Configs related to local delivery ends for the day. Corresponds to the JSON property cutoffConfig



2498
2499
2500
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2498

def cutoff_config
  @cutoff_config
end

#service_radiusGoogle::Apis::MerchantapiAccountsV1beta::Distance

Maximum delivery radius. This is only required for the local delivery shipment type. Corresponds to the JSON property serviceRadius



2504
2505
2506
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2504

def service_radius
  @service_radius
end

#store_codesArray<String>

Optional. A list of store codes that provide local delivery. If empty, then all_stores must be true. Corresponds to the JSON property storeCodes

Returns:

  • (Array<String>)


2510
2511
2512
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2510

def store_codes
  @store_codes
end

#store_service_typeString

Indicates whether all stores, or selected stores, listed by this merchant provide local delivery. Corresponds to the JSON property storeServiceType

Returns:

  • (String)


2516
2517
2518
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2516

def store_service_type
  @store_service_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2523
2524
2525
2526
2527
2528
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2523

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