class Google::Apis::ContentV2::AccountShippingCarrierRate
A carrier-calculated shipping rate.
Attributes
The carrier that is responsible for the shipping, such as “UPS”, “FedEx”, or “ USPS”. Corresponds to the JSON property `carrier` @return [String]
The carrier service, such as “Ground” or “2Day”. Corresponds to the JSON property `carrierService` @return [String]
Additive shipping rate modifier. Corresponds to the JSON property `modifierFlatRate` @return [Google::Apis::ContentV2::Price]
Multiplicative shipping rate modifier in percent. Represented as a floating point number without the percentage character. Corresponds to the JSON property `modifierPercent` @return [String]
The name of the carrier rate. Corresponds to the JSON property `name` @return [String]
The sale country for which this carrier rate is valid, represented as a CLDR territory code. Corresponds to the JSON property `saleCountry` @return [String]
Shipping origin represented as a postal code. Corresponds to the JSON property `shippingOrigin` @return [String]
Public Class Methods
# File generated/google/apis/content_v2/classes.rb, line 249 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/content_v2/classes.rb, line 254 def update!(**args) @carrier = args[:carrier] if args.key?(:carrier) @carrier_service = args[:carrier_service] if args.key?(:carrier_service) @modifier_flat_rate = args[:modifier_flat_rate] if args.key?(:modifier_flat_rate) @modifier_percent = args[:modifier_percent] if args.key?(:modifier_percent) @name = args[:name] if args.key?(:name) @sale_country = args[:sale_country] if args.key?(:sale_country) @shipping_origin = args[:shipping_origin] if args.key?(:shipping_origin) end