class Google::Apis::ContentV2_1::CarriersCarrier
Attributes
country[RW]
The CLDR country code of the carrier (e.g., “US”). Always present. Corresponds to the JSON property `country` @return [String]
edd_services[RW]
A list of services supported for EDD (Estimated Delivery Date
) calculation. This is the list of valid values for WarehouseBasedDeliveryTime.carrierService. Corresponds to the JSON property `eddServices` @return [Array<String>]
name[RW]
The name of the carrier (e.g., `“UPS”`). Always present. Corresponds to the JSON property `name` @return [String]
services[RW]
A list of supported services (e.g., `“ground”`) for that carrier. Contains at least one service. This is the list of valid values for CarrierRate
. carrierService. Corresponds to the JSON property `services` @return [Array<String>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/content_v2_1/classes.rb, line 1818 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/content_v2_1/classes.rb, line 1823 def update!(**args) @country = args[:country] if args.key?(:country) @edd_services = args[:edd_services] if args.key?(:edd_services) @name = args[:name] if args.key?(:name) @services = args[:services] if args.key?(:services) end