Class: Google::Apis::ContentV2::ProductShipping
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ContentV2::ProductShipping
 
 
- Defined in:
 - generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb 
Instance Attribute Summary collapse
- 
  
    
      #country  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The CLDR territory code of the country to which an item will ship.
 - 
  
    
      #location_group_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The location where the shipping is applicable, represented by a location group name.
 - 
  
    
      #location_id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The numeric id of a location that the shipping rate applies to as defined in the AdWords API.
 - 
  
    
      #postal_code  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
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.
 - 
  
    
      #price  ⇒ Google::Apis::ContentV2::Price 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Fixed shipping price, represented as a number.
 - 
  
    
      #region  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The geographic region to which a shipping rate applies.
 - 
  
    
      #service  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A free-form description of the service class or delivery speed.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ProductShipping 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ProductShipping.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ProductShipping
Returns a new instance of ProductShipping
      8764 8765 8766  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 8764 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#country ⇒ String
The CLDR territory code of the country to which an item will ship.
Corresponds to the JSON property country
      8728 8729 8730  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 8728 def country @country end  | 
  
#location_group_name ⇒ String
The location where the shipping is applicable, represented by a location group
name.
Corresponds to the JSON property locationGroupName
      8734 8735 8736  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 8734 def location_group_name @location_group_name end  | 
  
#location_id ⇒ Fixnum
The numeric id of a location that the shipping rate applies to as defined in
the AdWords API.
Corresponds to the JSON property locationId
      8740 8741 8742  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 8740 def location_id @location_id end  | 
  
#postal_code ⇒ String
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
      8747 8748 8749  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 8747 def postal_code @postal_code end  | 
  
#price ⇒ Google::Apis::ContentV2::Price
Fixed shipping price, represented as a number.
Corresponds to the JSON property price
      8752 8753 8754  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 8752 def price @price end  | 
  
#region ⇒ String
The geographic region to which a shipping rate applies.
Corresponds to the JSON property region
      8757 8758 8759  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 8757 def region @region end  | 
  
#service ⇒ String
A free-form description of the service class or delivery speed.
Corresponds to the JSON property service
      8762 8763 8764  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 8762 def service @service end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      8769 8770 8771 8772 8773 8774 8775 8776 8777  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 8769 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  |