Class: Google::Apis::MerchantapiAccountsV1beta::StoreConfig
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiAccountsV1beta::StoreConfig
- 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
-
#cutoff_config ⇒ Google::Apis::MerchantapiAccountsV1beta::CutoffConfig
Configs related to local delivery ends for the day.
-
#service_radius ⇒ Google::Apis::MerchantapiAccountsV1beta::Distance
Maximum delivery radius.
-
#store_codes ⇒ Array<String>
Optional.
-
#store_service_type ⇒ String
Indicates whether all stores, or selected stores, listed by this merchant provide local delivery.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StoreConfig
constructor
A new instance of StoreConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_config ⇒ Google::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_radius ⇒ Google::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_codes ⇒ Array<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
2510 2511 2512 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2510 def store_codes @store_codes end |
#store_service_type ⇒ String
Indicates whether all stores, or selected stores, listed by this merchant
provide local delivery.
Corresponds to the JSON property storeServiceType
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 |