class Google::Apis::ContentV2::AccountShippingShippingServiceCalculationMethod
Shipping cost calculation method. Exactly one of the field is set.
Attributes
Name of the carrier rate to use for the calculation. Corresponds to the JSON property `carrierRate` @return [String]
Delivery is excluded. Valid only within cost rules tree. Corresponds to the JSON property `excluded` @return [Boolean]
Delivery is excluded. Valid only within cost rules tree. Corresponds to the JSON property `excluded` @return [Boolean]
Fixed price shipping, represented as a floating point number associated with a currency. Corresponds to the JSON property `flatRate` @return [Google::Apis::ContentV2::Price]
Percentage of the price, represented as a floating point number without the percentage character. Corresponds to the JSON property `percentageRate` @return [String]
Name of the rate table to use for the calculation. Corresponds to the JSON property `rateTable` @return [String]
Public Class Methods
# File generated/google/apis/content_v2/classes.rb, line 552 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/content_v2/classes.rb, line 557 def update!(**args) @carrier_rate = args[:carrier_rate] if args.key?(:carrier_rate) @excluded = args[:excluded] if args.key?(:excluded) @flat_rate = args[:flat_rate] if args.key?(:flat_rate) @percentage_rate = args[:percentage_rate] if args.key?(:percentage_rate) @rate_table = args[:rate_table] if args.key?(:rate_table) end