class Google::Apis::ContentV2_1::Service
Attributes
A boolean exposing the active status of the shipping service. Required. Corresponds to the JSON property `active` @return [Boolean]
A boolean exposing the active status of the shipping service. Required. Corresponds to the JSON property `active` @return [Boolean]
The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups. Corresponds to the JSON property `currency` @return [String]
The CLDR territory code of the country to which the service applies. Required. Corresponds to the JSON property `deliveryCountry` @return [String]
Time spent in various aspects from order to the delivery of the product. Required. Corresponds to the JSON property `deliveryTime` @return [Google::Apis::ContentV2_1::DeliveryTime]
Eligibility for this service. Acceptable values are: - “`All scenarios`” - “` All scenarios except Shopping Actions`” - “`Shopping Actions`” Corresponds to the JSON property `eligibility` @return [String]
Minimum order value for this service. If set, indicates that customers will have to spend at least this amount. All prices within a service must have the same currency. Cannot be set together with minimum_order_value_table. Corresponds to the JSON property `minimumOrderValue` @return [Google::Apis::ContentV2_1::Price]
Table
of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value. Corresponds to the JSON property `minimumOrderValueTable` @return [Google::Apis::ContentV2_1::MinimumOrderValueTable]
Free-form name of the service. Must be unique within target account. Required. Corresponds to the JSON property `name` @return [String]
The carrier-service pair delivering items to collection points. The list of supported pickup services can be retrieved via the `getSupportedPickupServices` method. Required if and only if the service delivery type is `pickup`. Corresponds to the JSON property `pickupService` @return [Google::Apis::ContentV2_1::PickupCarrierService]
Shipping rate group definitions. Only the last one is allowed to have an empty `applicableShippingLabels`, which means “everything else”. The other ` applicableShippingLabels` must not overlap. Corresponds to the JSON property `rateGroups` @return [Array<Google::Apis::ContentV2_1::RateGroup>]
Type of locations this service ships orders to. Acceptable values are: - “` delivery`” - “`pickup`” Corresponds to the JSON property `shipmentType` @return [String]
Public Class Methods
# File lib/google/apis/content_v2_1/classes.rb, line 14129 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/content_v2_1/classes.rb, line 14134 def update!(**args) @active = args[:active] if args.key?(:active) @currency = args[:currency] if args.key?(:currency) @delivery_country = args[:delivery_country] if args.key?(:delivery_country) @delivery_time = args[:delivery_time] if args.key?(:delivery_time) @eligibility = args[:eligibility] if args.key?(:eligibility) @minimum_order_value = args[:minimum_order_value] if args.key?(:minimum_order_value) @minimum_order_value_table = args[:minimum_order_value_table] if args.key?(:minimum_order_value_table) @name = args[:name] if args.key?(:name) @pickup_service = args[:pickup_service] if args.key?(:pickup_service) @rate_groups = args[:rate_groups] if args.key?(:rate_groups) @shipment_type = args[:shipment_type] if args.key?(:shipment_type) end