class Google::Apis::ContentV2::AccountShippingRateTableCell

Attributes

condition[RW]

Conditions for which the cell is valid. All cells in a table must use the same dimension or pair of dimensions among price, weight, shipping label or delivery location. If no condition is specified, the cell acts as a catch-all and matches all the elements that are not matched by other cells in this dimension. Corresponds to the JSON property `condition` @return [Google::Apis::ContentV2::AccountShippingCondition]

rate[RW]

The rate applicable if the cell conditions are matched. Corresponds to the JSON property `rate` @return [Google::Apis::ContentV2::Price]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/content_v2/classes.rb, line 457
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/content_v2/classes.rb, line 462
def update!(**args)
  @condition = args[:condition] if args.key?(:condition)
  @rate = args[:rate] if args.key?(:rate)
end