class Google::Apis::ContentV2::WarehouseBasedDeliveryTime

Attributes

carrier[RW]

Required. Carrier, such as `“UPS”` or `“Fedex”`. The list of supported carriers can be retrieved via the `listSupportedCarriers` method. Corresponds to the JSON property `carrier` @return [String]

carrier_service[RW]

Required. Carrier service, such as `“ground”` or `“2 days”`. The list of supported services for a carrier can be retrieved via the ` listSupportedCarriers` method. The name of the service must be in the eddSupportedServices list. Corresponds to the JSON property `carrierService` @return [String]

origin_administrative_area[RW]

Required. Shipping origin's state. Corresponds to the JSON property `originAdministrativeArea` @return [String]

origin_city[RW]

Required. Shipping origin's city. Corresponds to the JSON property `originCity` @return [String]

origin_country[RW]

Required. Shipping origin's country represented as a [CLDR territory code]( www.unicode.org/repos/cldr/tags/latest/common/main/en.xml). Corresponds to the JSON property `originCountry` @return [String]

origin_postal_code[RW]

Required. Shipping origin. Corresponds to the JSON property `originPostalCode` @return [String]

origin_street_address[RW]

Shipping origin's street address Corresponds to the JSON property `originStreetAddress` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2/classes.rb, line 11564
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/classes.rb, line 11569
def update!(**args)
  @carrier = args[:carrier] if args.key?(:carrier)
  @carrier_service = args[:carrier_service] if args.key?(:carrier_service)
  @origin_administrative_area = args[:origin_administrative_area] if args.key?(:origin_administrative_area)
  @origin_city = args[:origin_city] if args.key?(:origin_city)
  @origin_country = args[:origin_country] if args.key?(:origin_country)
  @origin_postal_code = args[:origin_postal_code] if args.key?(:origin_postal_code)
  @origin_street_address = args[:origin_street_address] if args.key?(:origin_street_address)
end