class Google::Apis::ContentV2::ProductShipping

Attributes

country[RW]

The CLDR territory code of the country to which an item will ship. Corresponds to the JSON property `country` @return [String]

location_group_name[RW]

The location where the shipping is applicable, represented by a location group name. Corresponds to the JSON property `locationGroupName` @return [String]

location_id[RW]

The numeric ID of a location that the shipping rate applies to as defined in the AdWords API. Corresponds to the JSON property `locationId` @return [Fixnum]

postal_code[RW]

The postal code range that the shipping rate applies to, represented by a postal code, a postal code prefix followed by a * wildcard, a range between two postal codes or two postal code prefixes of equal length. Corresponds to the JSON property `postalCode` @return [String]

price[RW]

Fixed shipping price, represented as a number. Corresponds to the JSON property `price` @return [Google::Apis::ContentV2::Price]

region[RW]

The geographic region to which a shipping rate applies. Corresponds to the JSON property `region` @return [String]

service[RW]

A free-form description of the service class or delivery speed. Corresponds to the JSON property `service` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2/classes.rb, line 9474
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 9479
def update!(**args)
  @country = args[:country] if args.key?(:country)
  @location_group_name = args[:location_group_name] if args.key?(:location_group_name)
  @location_id = args[:location_id] if args.key?(:location_id)
  @postal_code = args[:postal_code] if args.key?(:postal_code)
  @price = args[:price] if args.key?(:price)
  @region = args[:region] if args.key?(:region)
  @service = args[:service] if args.key?(:service)
end