Class: Google::Apis::ContentV2::RateGroup
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ContentV2::RateGroup
 
 
- 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
- 
  
    
      #applicable_shipping_labels  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A list of shipping labels defining the products to which this rate group applies to.
 - 
  
    
      #carrier_rates  ⇒ Array<Google::Apis::ContentV2::CarrierRate> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A list of carrier rates that can be referred to by mainTable or singleValue.
 - 
  
    
      #main_table  ⇒ Google::Apis::ContentV2::Table 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A table defining the rate group, when singleValue is not expressive enough.
 - 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Name of the rate group.
 - 
  
    
      #single_value  ⇒ Google::Apis::ContentV2::Value 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The single value of a rate group or the value of a rate group table's cell.
 - 
  
    
      #subtables  ⇒ Array<Google::Apis::ContentV2::Table> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A list of subtables referred to by mainTable.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ RateGroup 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of RateGroup.
 - 
  
    
      #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) ⇒ RateGroup
Returns a new instance of RateGroup
      9577 9578 9579  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 9577 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#applicable_shipping_labels ⇒ Array<String>
A list of shipping labels defining the products to which this rate group
applies to. This is a disjunction: only one of the labels has to match for the
rate group to apply. May only be empty for the last rate group of a service.
Required.
Corresponds to the JSON property applicableShippingLabels
      9545 9546 9547  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 9545 def applicable_shipping_labels @applicable_shipping_labels end  | 
  
#carrier_rates ⇒ Array<Google::Apis::ContentV2::CarrierRate>
A list of carrier rates that can be referred to by mainTable or singleValue.
Corresponds to the JSON property carrierRates
      9550 9551 9552  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 9550 def carrier_rates @carrier_rates end  | 
  
#main_table ⇒ Google::Apis::ContentV2::Table
A table defining the rate group, when singleValue is not expressive enough.
Can only be set if singleValue is not set.
Corresponds to the JSON property mainTable
      9556 9557 9558  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 9556 def main_table @main_table end  | 
  
#name ⇒ String
Name of the rate group. Optional. If set has to be unique within shipping
service.
Corresponds to the JSON property name
      9562 9563 9564  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 9562 def name @name end  | 
  
#single_value ⇒ Google::Apis::ContentV2::Value
The single value of a rate group or the value of a rate group table's cell.
Exactly one of noShipping, flatRate, pricePercentage, carrierRateName,
subtableName must be set.
Corresponds to the JSON property singleValue
      9569 9570 9571  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 9569 def single_value @single_value end  | 
  
#subtables ⇒ Array<Google::Apis::ContentV2::Table>
A list of subtables referred to by mainTable. Can only be set if mainTable is
set.
Corresponds to the JSON property subtables
      9575 9576 9577  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 9575 def subtables @subtables end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      9582 9583 9584 9585 9586 9587 9588 9589  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 9582 def update!(**args) @applicable_shipping_labels = args[:applicable_shipping_labels] if args.key?(:applicable_shipping_labels) @carrier_rates = args[:carrier_rates] if args.key?(:carrier_rates) @main_table = args[:main_table] if args.key?(:main_table) @name = args[:name] if args.key?(:name) @single_value = args[:single_value] if args.key?(:single_value) @subtables = args[:subtables] if args.key?(:subtables) end  |