class Google::Apis::ContentV2_1::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.

Attributes

carrier_rate_name[RW]

The name of a carrier rate referring to a carrier rate defined in the same rate group. Can only be set if all other fields are not set. Corresponds to the JSON property `carrierRateName` @return [String]

flat_rate[RW]

A flat rate. Can only be set if all other fields are not set. Corresponds to the JSON property `flatRate` @return [Google::Apis::ContentV2_1::Price]

no_shipping[RW]

If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set. Corresponds to the JSON property `noShipping` @return [Boolean]

no_shipping?[RW]

If true, then the product can't ship. Must be true when set, can only be set if all other fields are not set. Corresponds to the JSON property `noShipping` @return [Boolean]

price_percentage[RW]

A percentage of the price represented as a number in decimal notation (e.g., `“ 5.4”`). Can only be set if all other fields are not set. Corresponds to the JSON property `pricePercentage` @return [String]

subtable_name[RW]

The name of a subtable. Can only be set in table cells (i.e., not for single values), and only if all other fields are not set. Corresponds to the JSON property `subtableName` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2_1/classes.rb, line 15625
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_1/classes.rb, line 15630
def update!(**args)
  @carrier_rate_name = args[:carrier_rate_name] if args.key?(:carrier_rate_name)
  @flat_rate = args[:flat_rate] if args.key?(:flat_rate)
  @no_shipping = args[:no_shipping] if args.key?(:no_shipping)
  @price_percentage = args[:price_percentage] if args.key?(:price_percentage)
  @subtable_name = args[:subtable_name] if args.key?(:subtable_name)
end